From bb311c5e35d386a9ac3a54b216c9652ce0e4edde Mon Sep 17 00:00:00 2001 From: d34d Date: Fri, 20 Mar 2015 16:27:06 -0700 Subject: 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 --- src/com/cyngn/theme/chooser/ChooserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') 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()); } } -- cgit v1.2.3