summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-09-04 15:36:27 -0700
committerClark Scheff <clark@cyngn.com>2014-09-04 15:36:27 -0700
commitf33568b07f2b77eb10ab3b71023453888c13686d (patch)
tree11012ffc7ce41f18eddea7b571ca0732c0b7093a /src
parentbd60540de67b04d3a57021b64b180ac21518d247 (diff)
downloadpackages_apps_ThemeChooser-f33568b07f2b77eb10ab3b71023453888c13686d.zip
packages_apps_ThemeChooser-f33568b07f2b77eb10ab3b71023453888c13686d.tar.gz
packages_apps_ThemeChooser-f33568b07f2b77eb10ab3b71023453888c13686d.tar.bz2
Workaround AOSP issue #18990
Change-Id: I398eec984673244d0164dea85011ecdf35ccf9e3 See: https://code.google.com/p/android/issues/detail?id=18990
Diffstat (limited to 'src')
-rw-r--r--src/android/support/v4/view/ThemeViewPager.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/android/support/v4/view/ThemeViewPager.java b/src/android/support/v4/view/ThemeViewPager.java
index 077e170..136e125 100644
--- a/src/android/support/v4/view/ThemeViewPager.java
+++ b/src/android/support/v4/view/ThemeViewPager.java
@@ -5,6 +5,7 @@ package android.support.v4.view;
import android.content.Context;
import android.util.AttributeSet;
+import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
@@ -12,6 +13,7 @@ import android.view.ViewConfiguration;
import com.cyngn.theme.chooser.R;
public class ThemeViewPager extends ViewPager {
+ private static final String TAG = ThemeViewPager.class.getSimpleName();
private boolean mExpanded;
private boolean mIsAnimating;
@@ -117,7 +119,16 @@ public class ThemeViewPager extends ViewPager {
return false;
}
- return super.onTouchEvent(ev);
+ /**
+ * Work around AOSP issue #18990
+ * https://code.google.com/p/android/issues/detail?id=18990
+ */
+ try {
+ return super.onTouchEvent(ev);
+ } catch (IllegalArgumentException e) {
+ Log.w(TAG, "Failed while calling super.onTouchEvent()", e);
+ }
+ return false;
}
/**