summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2011-12-30 18:58:41 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 01:20:24 +0000
commit3f82fde21a1146ae50fcc63b52adec971d41e815 (patch)
tree24a2eaeb9c20f1aa1e82bd3acac74ea2c39738fd /src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
parente78f8ad769c5cbe688f54904c7870a19c0b9e1de (diff)
downloadpackages_apps_trebuchet-3f82fde21a1146ae50fcc63b52adec971d41e815.zip
packages_apps_trebuchet-3f82fde21a1146ae50fcc63b52adec971d41e815.tar.gz
packages_apps_trebuchet-3f82fde21a1146ae50fcc63b52adec971d41e815.tar.bz2
AppsCustomize: Apps Sort Mode Cling
Change-Id: I07a08afb1f249f226693e935ad7ebc017f9c79b0
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index d78e341..82341bb 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -273,6 +273,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// Cling
private boolean mHasShownAllAppsCling;
+ private boolean mHasShownAllAppsSortCling;
private int mClingFocusedX;
private int mClingFocusedY;
@@ -565,6 +566,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
void showAllAppsCling() {
+ Cling allAppsCling = (Cling) getTabHost().findViewById(R.id.all_apps_cling);
if (!mHasShownAllAppsCling && isDataReady()) {
mHasShownAllAppsCling = true;
// Calculate the position for the cling punch through
@@ -576,6 +578,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
offset[0];
pos[1] += offset[1];
mLauncher.showFirstRunAllAppsCling(pos);
+ } else if (!mHasShownAllAppsSortCling && isDataReady() &&
+ allAppsCling != null && allAppsCling.isDismissed()) {
+ mHasShownAllAppsSortCling = true;
+ mLauncher.showFirstRunAllAppsSortCling();
}
}