summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod
diff options
context:
space:
mode:
authorKaiyi Zhang <kaiyiz@codeaurora.org>2013-07-24 13:01:04 +0800
committerSteve Kondik <shade@chemlab.org>2013-08-17 02:35:26 -0700
commitd1628e17b61384244f8fb30cb1bf10b73b49146b (patch)
tree313c9f5f3b4cc865db3269d864fa74dd94402e0b /src/com/cyanogenmod
parenta8ae0884da4fae64bad0de7ff27b186cd8fe7804 (diff)
downloadandroid_packages_apps_Trebuchet-d1628e17b61384244f8fb30cb1bf10b73b49146b.tar.gz
android_packages_apps_Trebuchet-d1628e17b61384244f8fb30cb1bf10b73b49146b.tar.bz2
android_packages_apps_Trebuchet-d1628e17b61384244f8fb30cb1bf10b73b49146b.zip
Launcher: The contents is not match tab when change language
When the AppsCustomizePagedView invalidatePageData(), Launcher will actively switch pages sometimes but update the active tab of TabHost. update the current tab when invalidatePageData() done. Change-Id: Ic939a67178336a057890c423120d62490d131190 CRs-Fixed: BZ574
Diffstat (limited to 'src/com/cyanogenmod')
-rwxr-xr-x[-rw-r--r--]src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index ff9365356..d04cbb07e 100644..100755
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -584,6 +584,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// Restore the page
int page = getPageForComponent(mSaveInstanceStateItemIndex);
invalidatePageData(Math.max(0, page), hostIsTransitioning);
+ // The function above will switch the page but not check the
+ // status of TabHost, so updateCurrentTab here to make sure
+ // the status of TabHost is correct.
+ updateCurrentTab(getCurrentPage());
// Show All Apps cling if we are finished transitioning, otherwise, we will try again when
// the transition completes in AppsCustomizeTabHost (otherwise the wrong offsets will be