summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/cyngn/theme/widget/LockableScrollView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/cyngn/theme/widget/LockableScrollView.java b/src/com/cyngn/theme/widget/LockableScrollView.java
index 0986384..88f484a 100644
--- a/src/com/cyngn/theme/widget/LockableScrollView.java
+++ b/src/com/cyngn/theme/widget/LockableScrollView.java
@@ -41,4 +41,15 @@ public class LockableScrollView extends ScrollView {
return super.onTouchEvent(ev);
}
}
+
+ @Override
+ public void setOverScrollMode(int mode) {
+ // Some themes can cause theme chooser to crash when creating the EdgeEffects for
+ // the scroll view. If an exception occurs we fallback to no overscroll
+ try {
+ super.setOverScrollMode(mode);
+ } catch (Exception e) {
+ super.setOverScrollMode(OVER_SCROLL_NEVER);
+ }
+ }
}