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
committerTom Powell <zifnab@zifnab06.net>2017-03-26 15:52:41 -0700
commit847cfe33da2c8fa27f745c2d2b499c0cf57055e0 (patch)
treedc8d849a4687416c480027f04529201561b65fa2 /src/com/android/launcher3/Launcher.java
parent9090182042fc599a6dbb81b71406cbc7f877dfa0 (diff)
downloadandroid_packages_apps_Trebuchet-847cfe33da2c8fa27f745c2d2b499c0cf57055e0.tar.gz
android_packages_apps_Trebuchet-847cfe33da2c8fa27f745c2d2b499c0cf57055e0.tar.bz2
android_packages_apps_Trebuchet-847cfe33da2c8fa27f745c2d2b499c0cf57055e0.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);