Skip to content

Commit

Permalink
chore: move Statistics to SvelteKit
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed Jun 7, 2024
1 parent 69401f3 commit a4fd515
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
}
}

0 comments on commit a4fd515

Please sign in to comment.