diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-05-10 17:10:27 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-05-10 17:10:27 -0700 |
commit | 69259d121279a726631c4ce2863354090ec89e17 (patch) | |
tree | 15355fa14ddfc45983b24109f9261e4ce6c82d99 /src | |
parent | 3c129af728081038e9f140123d9f6041e6a64e4b (diff) | |
parent | b9322f7cf0b288a2e1b89ab56d0d65addd8e6b85 (diff) | |
download | packages_apps_trebuchet-69259d121279a726631c4ce2863354090ec89e17.zip packages_apps_trebuchet-69259d121279a726631c4ce2863354090ec89e17.tar.gz packages_apps_trebuchet-69259d121279a726631c4ce2863354090ec89e17.tar.bz2 |
Merge "Trebuchet: Centers horizontally the drawer on vertical orientation" into cm-10.1
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java index a38d826..1b87c4f 100644 --- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java +++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java @@ -383,7 +383,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen // Preferences mJoinWidgetsApps = PreferencesProvider.Interface.Drawer.getJoinWidgetsApps(); - mVertical = PreferencesProvider.Interface.Drawer.getVertical(); mTransitionEffect = PreferencesProvider.Interface.Drawer.Scrolling.getTransitionEffect( resources.getString(R.string.config_drawerDefaultTransitionEffect)); mFadeInAdjacentScreens = PreferencesProvider.Interface.Drawer.Scrolling.getFadeInAdjacentScreens(); @@ -427,7 +426,8 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen @Override protected void init() { super.init(); - mCenterPages = false; + mVertical = PreferencesProvider.Interface.Drawer.getVertical(); + mCenterPages = LauncherApplication.isScreenLarge() && mVertical; Context context = getContext(); Resources r = context.getResources(); |