aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-04-09 10:04:22 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-04-09 10:04:22 -0700
commitcb72a3331eb90166cbc882f722200f101e051e21 (patch)
tree493a5eb4a9778d511198a178d67662fc427c30f3 /src
parent5b2c0aa9c2de27653537a37b1d29dd12acfc853f (diff)
parentbc4e3e8e40fe538bb765c0a92dd3635a6b13a36d (diff)
downloaddsub-cb72a3331eb90166cbc882f722200f101e051e21.tar.gz
dsub-cb72a3331eb90166cbc882f722200f101e051e21.tar.bz2
dsub-cb72a3331eb90166cbc882f722200f101e051e21.zip
Merge pull request #330 from thknepper/master
Replace hard-coded strings with resource strings, update german translation
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java2
-rw-r--r--src/github/daneren2005/dsub/util/Util.java3
2 files changed, 4 insertions, 1 deletions
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);
}