Browse Source

Fix missing app name in import/export dialog message

pull/676/head
Jeremy Lin 2 months ago
parent
commit
6c60b9480e
No known key found for this signature in database
  1. 4
      app/src/main/java/org/transdroid/core/gui/settings/SystemSettingsActivity.java

4
app/src/main/java/org/transdroid/core/gui/settings/SystemSettingsActivity.java

@ -224,7 +224,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity { @@ -224,7 +224,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity {
case DIALOG_IMPORTSETTINGS:
// @formatter:off
return new AlertDialog.Builder(this)
.setMessage(getString(R.string.pref_import_dialog_android10))
.setMessage(getString(R.string.pref_import_dialog_android10, getString(R.string.app_name)))
.setPositiveButton(R.string.pref_import_fromfile, importSettingsFromFile)
.setNeutralButton(R.string.pref_import_fromqr, importSettingsFromQr)
.setNegativeButton(android.R.string.cancel, null)
@ -233,7 +233,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity { @@ -233,7 +233,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity {
case DIALOG_EXPORTSETTINGS:
// @formatter:off
return new AlertDialog.Builder(this)
.setMessage(getString(R.string.pref_export_dialog_android10))
.setMessage(getString(R.string.pref_export_dialog_android10, getString(R.string.app_name)))
.setPositiveButton(R.string.pref_export_tofile, exportSettingsToFile)
.setNeutralButton(R.string.pref_export_toqr, exportSettingsToQr)
.setNegativeButton(android.R.string.cancel, null)

Loading…
Cancel
Save