mirror of
https://github.com/gsantner/dandelion
synced 2024-11-22 12:22:08 +01:00
Fixed clear webview cache. Thanks @di72nn
This commit is contained in:
parent
68d299f894
commit
c005ef744d
1 changed files with 6 additions and 2 deletions
|
@ -94,8 +94,7 @@ public class SettingsActivity extends AppCompatActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
|
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
|
||||||
updatePreference(findPreference(key));
|
updatePreference(findPreference(key));
|
||||||
if (key != null && isAdded() && (key.equals(getString(R.string.pref_key__clear_cache)) ||
|
if (key != null && isAdded() && (key.equals(getString(R.string.pref_key__font_size)) ||
|
||||||
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__load_images)) ||
|
||||||
key.equals(getString(R.string.pref_key__intellihide_toolbars)) ||
|
key.equals(getString(R.string.pref_key__intellihide_toolbars)) ||
|
||||||
key.equals(getString(R.string.pref_key__proxy_enabled)) ||
|
key.equals(getString(R.string.pref_key__proxy_enabled)) ||
|
||||||
|
@ -158,6 +157,11 @@ public class SettingsActivity extends AppCompatActivity {
|
||||||
.show();
|
.show();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
case R.string.pref_title__clear_cache:
|
||||||
|
{
|
||||||
|
intent.setAction(MainActivity.ACTION_CLEAR_CACHE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
intent = null;
|
intent = null;
|
||||||
|
|
Loading…
Reference in a new issue