summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-03-20 16:27:06 -0700
committerd34d <clark@cyngn.com>2015-03-20 16:27:06 -0700
commitbb311c5e35d386a9ac3a54b216c9652ce0e4edde (patch)
treea89121772479b70826aedb5e29a7d2b4d6e5070d /src/com
parent2b022420a62eb3fb39a6c1783a3dd65ab701eed0 (diff)
downloadpackages_apps_ThemeChooser-bb311c5e35d386a9ac3a54b216c9652ce0e4edde.tar.gz
packages_apps_ThemeChooser-bb311c5e35d386a9ac3a54b216c9652ce0e4edde.tar.bz2
packages_apps_ThemeChooser-bb311c5e35d386a9ac3a54b216c9652ce0e4edde.zip
Don't perform click when applying a theme
It was possible to get the apply overlay to come up while the theme is being applied, which is not desirable. This patch simply checks if a theme is being applied and if it is, skips the performClick() call. Change-Id: I2e841f372b87695de276e281219ce6b7aae59e3a
Diffstat (limited to 'src/com')
-rw-r--r--src/com/cyngn/theme/chooser/ChooserActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/ChooserActivity.java b/src/com/cyngn/theme/chooser/ChooserActivity.java
index f509fa1..36e6149 100644
--- a/src/com/cyngn/theme/chooser/ChooserActivity.java
+++ b/src/com/cyngn/theme/chooser/ChooserActivity.java
@@ -720,7 +720,7 @@ public class ChooserActivity extends FragmentActivity
@Override
public void onClick(View v) {
ThemeFragment f = getCurrentFragment();
- if (f != null) {
+ if (f != null && !mThemeChanging) {
f.performClick(mPager.isClickedOnContent());
}
}