OSDN Git Service

Fix container horizontal padding
authorHyunyoung Song <hyunyoungs@google.com>
Tue, 21 Jun 2016 18:21:39 +0000 (11:21 -0700)
committerHyunyoung Song <hyunyoungs@google.com>
Tue, 21 Jun 2016 18:21:39 +0000 (11:21 -0700)
Change-Id: I41b84db6d71df7f4e47098fa9ed7eda4465f18c3

src/com/android/launcher3/BaseContainerView.java

index d7dec6e..84bd88d 100644 (file)
@@ -53,7 +53,7 @@ public abstract class BaseContainerView extends FrameLayout {
         Launcher launcher = Launcher.getLauncher(context);
         int width = launcher.getDeviceProfile().availableWidthPx;
         if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP &&
-                this instanceof AllAppsContainerView && launcher.getDeviceProfile().isLandscape) {
+                this instanceof AllAppsContainerView && !launcher.getDeviceProfile().isLandscape) {
             mHorizontalPadding = 0;
         } else {
             mHorizontalPadding = DeviceProfile.getContainerPadding(context, width);