diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/SettingsActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/SettingsActivity.java b/src/main/java/de/pixart/messenger/ui/SettingsActivity.java index 93b95c9c1..e57030a61 100644 --- a/src/main/java/de/pixart/messenger/ui/SettingsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/SettingsActivity.java @@ -269,6 +269,14 @@ public class SettingsActivity extends XmppActivity implements }); } + final Preference prefereXmppAvatarPreference = mSettingsFragment.findPreference(PREFER_XMPP_AVATAR); + if (prefereXmppAvatarPreference != null) { + prefereXmppAvatarPreference.setOnPreferenceClickListener(preference -> { + new Thread(() -> xmppConnectionService.getBitmapCache().evictAll()).start(); + return true; + }); + } + final Preference showIntroAgainPreference = mSettingsFragment.findPreference("show_intro"); if (showIntroAgainPreference != null) { showIntroAgainPreference.setSummary(getString(R.string.pref_show_intro_summary)); |