From 4e00d54c78eb5af6333dd00f3a6e3d2dbf299adc Mon Sep 17 00:00:00 2001 From: Dmitriy Bogdanov Date: Mon, 3 Oct 2016 11:21:02 +0400 Subject: [PATCH] Fix "Clear cache" option --- .../dfa/diaspora_android/activity/SettingsActivity.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/dfa/diaspora_android/activity/SettingsActivity.java b/app/src/main/java/com/github/dfa/diaspora_android/activity/SettingsActivity.java index 88f13171..f3011a2a 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/activity/SettingsActivity.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/activity/SettingsActivity.java @@ -94,8 +94,7 @@ public class SettingsActivity extends AppCompatActivity { @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { updatePreference(findPreference(key)); - if (key != null && isAdded() && (key.equals(getString(R.string.pref_key__clear_cache)) || - key.equals(getString(R.string.pref_key__font_size)) || + if (key != null && isAdded() && (key.equals(getString(R.string.pref_key__font_size)) || key.equals(getString(R.string.pref_key__load_images)) || key.equals(getString(R.string.pref_key__intellihide_toolbars)) || key.equals(getString(R.string.pref_key__proxy_enabled)) || @@ -158,6 +157,10 @@ public class SettingsActivity extends AppCompatActivity { .show(); return true; } + case R.string.pref_title__clear_cache: { + intent.setAction(MainActivity.ACTION_CLEAR_CACHE); + break; + } default: { intent = null;