From a4fd515400e995574349ef2ea872244cbfdc700b Mon Sep 17 00:00:00 2001 From: Brayan Oliveira <69634269+brayandso@users.noreply.github.com> Date: Tue, 21 May 2024 20:38:47 -0300 Subject: [PATCH] chore: move Statistics to SvelteKit --- AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt b/AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt index cab2c39026bb..6b921ad33c53 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt @@ -26,15 +26,10 @@ import com.google.android.material.appbar.AppBarLayout import com.google.android.material.appbar.MaterialToolbar import com.ichi2.anki.CollectionManager import com.ichi2.anki.R -import com.ichi2.anki.SingleFragmentActivity import com.ichi2.anki.utils.getTimestamp import com.ichi2.libanki.utils.TimeManager class Statistics : PageFragment(R.layout.statistics) { - override val title: String - get() = resources.getString(R.string.statistics) - - override val pageName = "graphs" override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) @@ -72,7 +67,7 @@ class Statistics : PageFragment(R.layout.statistics) { companion object { fun getIntent(context: Context): Intent { - return SingleFragmentActivity.getIntent(context, Statistics::class) + return getIntent(context, "graphs", context.getString(R.string.statistics), Statistics::class) } } }