From 75bae064f51a6b0640767d5c583cfd4b1e738bae Mon Sep 17 00:00:00 2001 From: d34d Date: Fri, 6 May 2016 12:20:03 -0700 Subject: Check if theme is applying in onResume Make sure mThemeChanging reflects what the ThemeManager returns from isThemeApplying() Change-Id: I4c3d2bac7b48d173a3f3c376971339e127d3476b TICKET: FEIJ-443 --- src/com/cyngn/theme/chooser/ChooserActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/cyngn/theme/chooser/ChooserActivity.java b/src/com/cyngn/theme/chooser/ChooserActivity.java index 024b19e..b1f943f 100644 --- a/src/com/cyngn/theme/chooser/ChooserActivity.java +++ b/src/com/cyngn/theme/chooser/ChooserActivity.java @@ -60,6 +60,7 @@ import com.cyngn.theme.util.Utils; import cyanogenmod.platform.Manifest; import cyanogenmod.providers.ThemesContract; import cyanogenmod.providers.ThemesContract.ThemesColumns; +import cyanogenmod.themes.ThemeManager; import java.util.ArrayList; import java.util.HashMap; @@ -677,7 +678,8 @@ public class ChooserActivity extends FragmentActivity // clear out any notifications that are being displayed. NotificationHelper.cancelNotifications(this); - mThemeChanging = false; + ThemeManager tm = ThemeManager.getInstance(this); + mThemeChanging = tm.isThemeApplying(); if (!mIsPickingImage) { startLoader(LOADER_ID_APPLIED); -- cgit v1.1