summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-11-13 16:51:43 -0800
committercretin45 <cretin45@gmail.com>2015-11-23 12:10:32 -0800
commitacab44fc939b4083ab7ec889b0c6d4fe0db00cca (patch)
tree6d7dd6d411404b804814ec4091e007f05dfd4ae5 /src/com/android/launcher3/Launcher.java
parent35614fdc7d13179ba9cbc80f15eca6d63cf3229d (diff)
downloadandroid_packages_apps_Trebuchet-acab44fc939b4083ab7ec889b0c6d4fe0db00cca.tar.gz
android_packages_apps_Trebuchet-acab44fc939b4083ab7ec889b0c6d4fe0db00cca.tar.bz2
android_packages_apps_Trebuchet-acab44fc939b4083ab7ec889b0c6d4fe0db00cca.zip
Reimplement the CM scrubber against the new Launcher
PS4: Implement RTL support Change-Id: I4456d54b5924913d1b36e1cfa9a2269150f6fb3e
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 6faea2084..1976ca982 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -348,6 +348,8 @@ public class Launcher extends Activity
private DeviceProfile mDeviceProfile;
+ private boolean mUseScrubber = true;
+
// This is set to the view that launched the activity that navigated the user away from
// launcher. Since there is no callback for when the activity has finished launching, enable
// the press state and keep this reference to reset the press state when we return to launcher.
@@ -1448,6 +1450,11 @@ public class Launcher extends Activity
mAppsView.setSearchBarController(mAppsView.newDefaultAppSearchController());
}
+ mAppsView.setUseScrubber(mUseScrubber);
+ mAppsView.setSectionStrategy(AllAppsContainerView.SECTION_STRATEGY_RAGGED);
+ mAppsView.setGridTheme(AllAppsContainerView.GRID_THEME_DARK);
+ mWidgetsView.setUseScrubber(false);
+
// Setup the drag controller (drop targets have to be added in reverse order in priority)
dragController.setDragScoller(mWorkspace);
dragController.setScrollView(mDragLayer);