Loading quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1001,7 +1001,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener mAppWindowScale = widgetBackgroundBounds.width() / windowTargetBounds.width(); // Crop scaled app window to match widget appWindowCrop.set(0 /* left */, 0 /* top */, Math.round(windowTargetBounds.width()) /* right */, windowTargetBounds.width() /* right */, Math.round(widgetBackgroundBounds.height() / mAppWindowScale) /* bottom */); matrix.setTranslate(widgetBackgroundBounds.left, widgetBackgroundBounds.top); matrix.postScale(mAppWindowScale, mAppWindowScale, widgetBackgroundBounds.left, Loading quickstep/src/com/android/launcher3/taskbar/DesktopTaskbarUIController.java +2 −0 Original line number Diff line number Diff line Loading @@ -30,11 +30,13 @@ public class DesktopTaskbarUIController extends TaskbarUIController { mLauncher = launcher; } @SuppressWarnings("MissingSuperCall") // TODO: Fix me @Override protected void init(TaskbarControllers taskbarControllers) { mLauncher.getHotseat().setIconsAlpha(0f); } @SuppressWarnings("MissingSuperCall") // TODO: Fix me @Override protected void onDestroy() { mLauncher.getHotseat().setIconsAlpha(1f); Loading src/com/android/launcher3/LauncherFiles.java +8 −5 Original line number Diff line number Diff line Loading @@ -47,9 +47,12 @@ public class LauncherFiles { DEVICE_PREFERENCES_KEY + XML, APP_ICONS_DB)); public static final List<String> ALL_FILES = Collections.unmodifiableList( new ArrayList<String>() {{ addAll(GRID_DB_FILES); addAll(OTHER_FILES); }}); private static List<String> createAllFiles() { ArrayList<String> result = new ArrayList<>(); result.addAll(GRID_DB_FILES); result.addAll(OTHER_FILES); return Collections.unmodifiableList(result); } public static final List<String> ALL_FILES = createAllFiles(); } src/com/android/launcher3/PagedView.java +1 −1 Original line number Diff line number Diff line Loading @@ -1604,7 +1604,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou } private int getDisplacementFromScreenCenter(int childIndex, int screenCenter) { int childSize = Math.round(getChildVisibleSize(childIndex)); int childSize = getChildVisibleSize(childIndex); int halfChildSize = (childSize / 2); int childCenter = getChildOffset(childIndex) + halfChildSize; return childCenter - screenCenter; Loading Loading
quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1001,7 +1001,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener mAppWindowScale = widgetBackgroundBounds.width() / windowTargetBounds.width(); // Crop scaled app window to match widget appWindowCrop.set(0 /* left */, 0 /* top */, Math.round(windowTargetBounds.width()) /* right */, windowTargetBounds.width() /* right */, Math.round(widgetBackgroundBounds.height() / mAppWindowScale) /* bottom */); matrix.setTranslate(widgetBackgroundBounds.left, widgetBackgroundBounds.top); matrix.postScale(mAppWindowScale, mAppWindowScale, widgetBackgroundBounds.left, Loading
quickstep/src/com/android/launcher3/taskbar/DesktopTaskbarUIController.java +2 −0 Original line number Diff line number Diff line Loading @@ -30,11 +30,13 @@ public class DesktopTaskbarUIController extends TaskbarUIController { mLauncher = launcher; } @SuppressWarnings("MissingSuperCall") // TODO: Fix me @Override protected void init(TaskbarControllers taskbarControllers) { mLauncher.getHotseat().setIconsAlpha(0f); } @SuppressWarnings("MissingSuperCall") // TODO: Fix me @Override protected void onDestroy() { mLauncher.getHotseat().setIconsAlpha(1f); Loading
src/com/android/launcher3/LauncherFiles.java +8 −5 Original line number Diff line number Diff line Loading @@ -47,9 +47,12 @@ public class LauncherFiles { DEVICE_PREFERENCES_KEY + XML, APP_ICONS_DB)); public static final List<String> ALL_FILES = Collections.unmodifiableList( new ArrayList<String>() {{ addAll(GRID_DB_FILES); addAll(OTHER_FILES); }}); private static List<String> createAllFiles() { ArrayList<String> result = new ArrayList<>(); result.addAll(GRID_DB_FILES); result.addAll(OTHER_FILES); return Collections.unmodifiableList(result); } public static final List<String> ALL_FILES = createAllFiles(); }
src/com/android/launcher3/PagedView.java +1 −1 Original line number Diff line number Diff line Loading @@ -1604,7 +1604,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou } private int getDisplacementFromScreenCenter(int childIndex, int screenCenter) { int childSize = Math.round(getChildVisibleSize(childIndex)); int childSize = getChildVisibleSize(childIndex); int halfChildSize = (childSize / 2); int childCenter = getChildOffset(childIndex) + halfChildSize; return childCenter - screenCenter; Loading