From f5830845c73ca2d09b33d3c690747f1cd8585b27 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 30 Mar 2016 13:58:46 +0800 Subject: [PATCH] fixed crashes --- .../java/org/mariotaku/twidere/activity/SettingsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/activity/SettingsActivity.java b/twidere/src/main/java/org/mariotaku/twidere/activity/SettingsActivity.java index b9f4c241f..992b85c44 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/activity/SettingsActivity.java +++ b/twidere/src/main/java/org/mariotaku/twidere/activity/SettingsActivity.java @@ -55,7 +55,6 @@ import org.mariotaku.twidere.fragment.CustomTabsFragment; import org.mariotaku.twidere.fragment.ExtensionsListFragment; import org.mariotaku.twidere.fragment.SettingsDetailsFragment; import org.mariotaku.twidere.fragment.SupportBrowserFragment; -import org.mariotaku.twidere.preference.iface.IDialogPreference; import org.mariotaku.twidere.util.KeyboardShortcutsHandler; import org.mariotaku.twidere.util.ThemeUtils; @@ -239,6 +238,7 @@ public class SettingsActivity extends BaseActivity implements OnItemClickListene } protected void openDetails(int position) { + if (isFinishing()) return; final Entry entry = mEntriesAdapter.getItem(position); if (!(entry instanceof PreferenceEntry)) return; final PreferenceEntry pe = (PreferenceEntry) entry;