summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/EdgeSwipeSettings.java
diff options
context:
space:
mode:
authorSagar Dhawan <sdhawan@codeaurora.org>2015-09-15 13:14:17 -0700
committerjrizzoli <joey@cyanogenmoditalia.it>2015-11-05 14:22:56 +0100
commitcab418ef1724fa65281d824092dc775183273305 (patch)
treef789126032708f1be506cdcd8561b41473597829 /src/com/android/browser/EdgeSwipeSettings.java
parent2abecc64e1ddcda6a5a0b7cd2d4cd5558d293004 (diff)
downloadandroid_packages_apps_Gello-cab418ef1724fa65281d824092dc775183273305.tar.gz
android_packages_apps_Gello-cab418ef1724fa65281d824092dc775183273305.tar.bz2
android_packages_apps_Gello-cab418ef1724fa65281d824092dc775183273305.zip
Fix crash when selecting edge swipe settings
When selecting a setting from the discovery panel the setting is updated asynchronously, this results in a view inviladitaion being called on the wrong thread. Changed it to Post it to the UI thread when available. Change-Id: I08ad30585da9b9b8a89dec69dc1cb216d0a23cd6
Diffstat (limited to 'src/com/android/browser/EdgeSwipeSettings.java')
-rw-r--r--src/com/android/browser/EdgeSwipeSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/EdgeSwipeSettings.java b/src/com/android/browser/EdgeSwipeSettings.java
index dd6da872..105434b4 100644
--- a/src/com/android/browser/EdgeSwipeSettings.java
+++ b/src/com/android/browser/EdgeSwipeSettings.java
@@ -169,7 +169,7 @@ public class EdgeSwipeSettings extends ViewDragHelper.Callback {
mStationaryView.setVisibility(View.GONE);
mSlidingViewShadow.setVisibility(View.GONE);
mSettingsView.setVisibility(View.GONE);
- mViewGroup.invalidate();
+ mViewGroup.postInvalidate();
}
private void goDormant() {