diff options
author | d34d <clark@cyngn.com> | 2015-03-18 15:54:41 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2015-03-18 17:16:11 -0700 |
commit | 44c6c629812051d4d1561efdb07b569ea2c1abec (patch) | |
tree | b1e4c88eb62b11c148883062dc863b09d6c01cde /src/com | |
parent | 9824ba42179bc15e6cb810479ffeeeea583afd26 (diff) | |
download | packages_apps_ThemeChooser-44c6c629812051d4d1561efdb07b569ea2c1abec.tar.gz packages_apps_ThemeChooser-44c6c629812051d4d1561efdb07b569ea2c1abec.tar.bz2 packages_apps_ThemeChooser-44c6c629812051d4d1561efdb07b569ea2c1abec.zip |
Don't show install notification for default theme
Because of the new flow with the themes provider, we end up getting
an ACTION_THEME_INSTALLED broadcast when the default theme gets
added to the provider. Once a user gets through OOBE they will
see the theme installed notification which is not desirable.
Change-Id: Ic6c5d34e452a71c830f56917b235ec9a126d27c3
REF: OPO-131
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/cyngn/theme/chooser/AppReceiver.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/AppReceiver.java b/src/com/cyngn/theme/chooser/AppReceiver.java index 546539f..3b56397 100644 --- a/src/com/cyngn/theme/chooser/AppReceiver.java +++ b/src/com/cyngn/theme/chooser/AppReceiver.java @@ -24,7 +24,9 @@ public class AppReceiver extends BroadcastReceiver { String action = intent.getAction(); if (ThemesContract.Intent.ACTION_THEME_INSTALLED.equals(action)) { - NotificationHelper.postThemeInstalledNotification(context, pkgName); + if (!pkgName.equals(ThemeUtils.getDefaultThemePackageName(context))) { + NotificationHelper.postThemeInstalledNotification(context, pkgName); + } } else if (ThemesContract.Intent.ACTION_THEME_REMOVED.equals(action)) { // remove updated status for this theme (if one exists) PreferenceUtils.removeUpdatedTheme(context, pkgName); |