Browse Source

Fix missing app name in import/export dialog message

pull/676/head
Jeremy Lin 1 month 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 {
case DIALOG_IMPORTSETTINGS: case DIALOG_IMPORTSETTINGS:
// @formatter:off // @formatter:off
return new AlertDialog.Builder(this) 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) .setPositiveButton(R.string.pref_import_fromfile, importSettingsFromFile)
.setNeutralButton(R.string.pref_import_fromqr, importSettingsFromQr) .setNeutralButton(R.string.pref_import_fromqr, importSettingsFromQr)
.setNegativeButton(android.R.string.cancel, null) .setNegativeButton(android.R.string.cancel, null)
@ -233,7 +233,7 @@ public class SystemSettingsActivity extends PreferenceCompatActivity {
case DIALOG_EXPORTSETTINGS: case DIALOG_EXPORTSETTINGS:
// @formatter:off // @formatter:off
return new AlertDialog.Builder(this) 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) .setPositiveButton(R.string.pref_export_tofile, exportSettingsToFile)
.setNeutralButton(R.string.pref_export_toqr, exportSettingsToQr) .setNeutralButton(R.string.pref_export_toqr, exportSettingsToQr)
.setNegativeButton(android.R.string.cancel, null) .setNegativeButton(android.R.string.cancel, null)

Loading…
Cancel
Save