Fix special mode title

This commit is contained in:
J-Jamet committed 2020-06-17 21:54:59 +02:00
1 parent 83783c1a88
commit 379fbf68b1
1 file changed
+5 -5
@@ -40,11 +40,11 @@ abstract class SpecialModeActivity : StylishActivity() {
specialModeView = findViewById(R.id.special_mode_view)
specialModeView?.apply {
// Populate title
title = if (mAutofillSelection) {
"${resources.getString(R.string.selection_mode)} (${getString(R.string.autofill)})"
} else {
getString(R.string.magic_keyboard_title)
}
val typeModeId = if (mAutofillSelection)
R.string.autofill
else
R.string.magic_keyboard_title
title = "${resources.getString(R.string.selection_mode)} (${getString(typeModeId)})"
// Populate subtitle
subtitle = searchInfo?.getName(resources)