diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-02 20:16:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-02 20:16:39 -0700 |
commit | f11af4586d886553f5017621f11a4a873662726a (patch) | |
tree | f1edeca2da9cea0fc07bce5e7dad1dc289ccab84 | |
parent | b7430917ae32ce49e46aff4e35f2aa8a7b19e27f (diff) | |
download | dsub-f11af4586d886553f5017621f11a4a873662726a.tar.gz dsub-f11af4586d886553f5017621f11a4a873662726a.tar.bz2 dsub-f11af4586d886553f5017621f11a4a873662726a.zip |
Fix random crash
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index 56c3e387..91703f16 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -245,7 +245,11 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { - Log.d(TAG, "Preference changed: " + key); + // Random error I have no idea how to reproduce + if(sharedPreferences == null) { + return; + } + update(); if (Constants.PREFERENCES_KEY_HIDE_MEDIA.equals(key)) { |