Skip to content

Commit

Permalink
add stats button title
Browse files Browse the repository at this point in the history
  • Loading branch information
RobozinhoD committed Jan 9, 2024
1 parent 32da193 commit 6673a75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AnkiDroid/src/main/java/com/ichi2/anki/pages/Statistics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat.getSystemService
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
Expand All @@ -47,6 +48,7 @@ class Statistics : PageFragment() {

view?.findViewById<MaterialToolbar>(R.id.toolbar)?.apply {
inflateMenu(R.menu.statistics)
menu.findItem(R.id.action_export_stats).title = CollectionManager.TR.statisticsSavePdf()
setOnMenuItemClickListener { item ->
if (item.itemId == R.id.action_export_stats) {
exportWebViewContentAsPDF()
Expand Down

0 comments on commit 6673a75

Please sign in to comment.