aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/values-de/strings.xml3
-rw-r--r--res/values/strings.xml1
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java2
-rw-r--r--src/github/daneren2005/dsub/util/Util.java3
4 files changed, 7 insertions, 2 deletions
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
index 96cca428..494ad2c4 100644
--- a/res/values-de/strings.xml
+++ b/res/values-de/strings.xml
@@ -21,7 +21,8 @@
<string name="common.play_external">Video abspielen</string>
<string name="common.stream_external">Video streamen</string>
<string name="common.confirm">Bestätigen</string>
- <string name="common.confirm_message">Wollen Sie %1$s %2$s?</string>
+ <string name="common.confirm_message">Wollen Sie %2$s %1$s?</string>
+ <string name="common.confirm_message_cache">den Cache</string>
<string name="common.empty">Nicht gefunden</string>
<string name="common.warning">Warnung</string>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 5b2d9b15..a7f5c2f6 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -22,6 +22,7 @@
<string name="common.stream_external">Stream Video</string>
<string name="common.confirm">Confirm</string>
<string name="common.confirm_message">Do you want to %1$s %2$s?</string>
+ <string name="common.confirm_message_cache">cache</string>
<string name="common.empty">None found</string>
<string name="common.warning">Warning</string>
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index f3d564a1..bf72f9a9 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -132,7 +132,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
findPreference("clearCache").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
- Util.confirmDialog(SettingsActivity.this, R.string.common_delete, "cache", new DialogInterface.OnClickListener() {
+ Util.confirmDialog(SettingsActivity.this, R.string.common_delete, R.string.common_confirm_message_cache, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
new LoadingTask<Void>(SettingsActivity.this, false) {
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index a18cc975..8488420e 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -651,6 +651,9 @@ public final class Util {
toast.show();
}
+ public static void confirmDialog(Context context, int action, int subject, DialogInterface.OnClickListener onClick) {
+ Util.confirmDialog(context, context.getResources().getString(action).toLowerCase(), context.getResources().getString(subject), onClick);
+ }
public static void confirmDialog(Context context, int action, String subject, DialogInterface.OnClickListener onClick) {
Util.confirmDialog(context, context.getResources().getString(action).toLowerCase(), subject, onClick);
}