Loading src/com/android/launcher3/Launcher.java +7 −10 Original line number Diff line number Diff line Loading @@ -997,8 +997,8 @@ public class Launcher extends Activity // Don't update the predicted apps if the user is returning to launcher in the apps // view after launching an app, as they may be depending on the UI to be static to // switch to another app, otherwise, if it was showAppsView(false /* animated */, false /* resetListToTop */, !launchedFromApp /* updatePredictedApps */, false /* focusSearchBar */); showAppsView(false /* animated */, !launchedFromApp /* updatePredictedApps */, false /* focusSearchBar */); } else if (mOnResumeState == State.WIDGETS) { showWidgetsView(false, false); } Loading Loading @@ -2601,8 +2601,8 @@ public class Launcher extends Activity if (!isAppsViewVisible()) { getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.TAP, LauncherLogProto.ALL_APPS_BUTTON); showAppsView(true /* animated */, false /* resetListToTop */, true /* updatePredictedApps */, false /* focusSearchBar */); showAppsView(true /* animated */, true /* updatePredictedApps */, false /* focusSearchBar */); } } Loading @@ -2611,7 +2611,7 @@ public class Launcher extends Activity if (!isAppsViewVisible()) { getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.LONGPRESS, LauncherLogProto.ALL_APPS_BUTTON); showAppsView(true /* animated */, false /* resetListToTop */, showAppsView(true /* animated */, true /* updatePredictedApps */, true /* focusSearchBar */); } } Loading Loading @@ -3355,12 +3355,9 @@ public class Launcher extends Activity /** * Shows the apps view. */ public void showAppsView(boolean animated, boolean resetListToTop, boolean updatePredictedApps, public void showAppsView(boolean animated, boolean updatePredictedApps, boolean focusSearchBar) { markAppsViewShown(); if (resetListToTop) { mAppsView.scrollToTop(); } if (updatePredictedApps) { tryAndUpdatePredictedApps(); } Loading Loading @@ -3487,7 +3484,7 @@ public class Launcher extends Activity void exitSpringLoadedDragMode() { if (mState == State.APPS_SPRING_LOADED) { showAppsView(true /* animated */, false /* resetListToTop */, showAppsView(true /* animated */, false /* updatePredictedApps */, false /* focusSearchBar */); } else if (mState == State.WIDGETS_SPRING_LOADED) { showWidgetsView(true, false); Loading src/com/android/launcher3/allapps/AllAppsContainerView.java +2 −1 Original line number Diff line number Diff line Loading @@ -348,9 +348,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc mAppsRecyclerView.preMeasureViews(mAdapter); mAdapter.setIconFocusListener(focusedItemDecorator.getFocusListener()); // TODO(hyunyoungs): clean up setting the content and the reveal view. if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) { getRevealView().setVisibility(View.VISIBLE); getContentView().setVisibility(View.VISIBLE); getContentView().setBackground(null); } } Loading src/com/android/launcher3/allapps/AllAppsTransitionController.java +7 −7 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ import android.view.MotionEvent; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.view.animation.AnimationUtils; import android.view.animation.DecelerateInterpolator; import android.view.animation.Interpolator; import com.android.launcher3.DeviceProfile; Loading Loading @@ -225,7 +224,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul LauncherLogProto.Action.UP, LauncherLogProto.HOTSEAT); } mLauncher.showAppsView(true, true, false, false); mLauncher.showAppsView(true /* animated */, false /* updatePredictedApps */, false /* focusSearchBar */); } else { calculateDuration(velocity, Math.abs(mShiftRange - mAppsView.getTranslationY())); mLauncher.showWorkspace(true); Loading @@ -243,7 +244,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul LauncherLogProto.Action.UP, LauncherLogProto.HOTSEAT); } mLauncher.showAppsView(true, true, false, false); mLauncher.showAppsView(true, /* animated */ false /* updatePredictedApps */, false /* focusSearchBar */); } } } Loading @@ -260,15 +263,11 @@ public class AllAppsTransitionController implements TouchController, VerticalPul // Initialize values that should not change until #onDragEnd mStatusBarHeight = mLauncher.getDragLayer().getInsets().top; mHotseat.setVisibility(View.VISIBLE); mHotseat.bringToFront(); if (!mLauncher.isAllAppsVisible()) { mLauncher.tryAndUpdatePredictedApps(); mHotseatBackgroundColor = mHotseat.getBackgroundDrawableColor(); mHotseat.setBackgroundTransparent(true /* transparent */); mAppsView.setVisibility(View.VISIBLE); mAppsView.getContentView().setVisibility(View.VISIBLE); mAppsView.getContentView().setBackground(null); mAppsView.getRevealView().setVisibility(View.VISIBLE); mAppsView.setRevealDrawableColor(mHotseatBackgroundColor); } } Loading Loading @@ -525,6 +524,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul mCaretAnimator.setDuration(mCaretAnimationDuration); mCaretAnimator.setInterpolator(mCaretInterpolator); mHotseat.addOnLayoutChangeListener(this); mHotseat.bringToFront(); } @Override Loading Loading
src/com/android/launcher3/Launcher.java +7 −10 Original line number Diff line number Diff line Loading @@ -997,8 +997,8 @@ public class Launcher extends Activity // Don't update the predicted apps if the user is returning to launcher in the apps // view after launching an app, as they may be depending on the UI to be static to // switch to another app, otherwise, if it was showAppsView(false /* animated */, false /* resetListToTop */, !launchedFromApp /* updatePredictedApps */, false /* focusSearchBar */); showAppsView(false /* animated */, !launchedFromApp /* updatePredictedApps */, false /* focusSearchBar */); } else if (mOnResumeState == State.WIDGETS) { showWidgetsView(false, false); } Loading Loading @@ -2601,8 +2601,8 @@ public class Launcher extends Activity if (!isAppsViewVisible()) { getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.TAP, LauncherLogProto.ALL_APPS_BUTTON); showAppsView(true /* animated */, false /* resetListToTop */, true /* updatePredictedApps */, false /* focusSearchBar */); showAppsView(true /* animated */, true /* updatePredictedApps */, false /* focusSearchBar */); } } Loading @@ -2611,7 +2611,7 @@ public class Launcher extends Activity if (!isAppsViewVisible()) { getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.LONGPRESS, LauncherLogProto.ALL_APPS_BUTTON); showAppsView(true /* animated */, false /* resetListToTop */, showAppsView(true /* animated */, true /* updatePredictedApps */, true /* focusSearchBar */); } } Loading Loading @@ -3355,12 +3355,9 @@ public class Launcher extends Activity /** * Shows the apps view. */ public void showAppsView(boolean animated, boolean resetListToTop, boolean updatePredictedApps, public void showAppsView(boolean animated, boolean updatePredictedApps, boolean focusSearchBar) { markAppsViewShown(); if (resetListToTop) { mAppsView.scrollToTop(); } if (updatePredictedApps) { tryAndUpdatePredictedApps(); } Loading Loading @@ -3487,7 +3484,7 @@ public class Launcher extends Activity void exitSpringLoadedDragMode() { if (mState == State.APPS_SPRING_LOADED) { showAppsView(true /* animated */, false /* resetListToTop */, showAppsView(true /* animated */, false /* updatePredictedApps */, false /* focusSearchBar */); } else if (mState == State.WIDGETS_SPRING_LOADED) { showWidgetsView(true, false); Loading
src/com/android/launcher3/allapps/AllAppsContainerView.java +2 −1 Original line number Diff line number Diff line Loading @@ -348,9 +348,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc mAppsRecyclerView.preMeasureViews(mAdapter); mAdapter.setIconFocusListener(focusedItemDecorator.getFocusListener()); // TODO(hyunyoungs): clean up setting the content and the reveal view. if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) { getRevealView().setVisibility(View.VISIBLE); getContentView().setVisibility(View.VISIBLE); getContentView().setBackground(null); } } Loading
src/com/android/launcher3/allapps/AllAppsTransitionController.java +7 −7 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ import android.view.MotionEvent; import android.view.View; import android.view.animation.AccelerateInterpolator; import android.view.animation.AnimationUtils; import android.view.animation.DecelerateInterpolator; import android.view.animation.Interpolator; import com.android.launcher3.DeviceProfile; Loading Loading @@ -225,7 +224,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul LauncherLogProto.Action.UP, LauncherLogProto.HOTSEAT); } mLauncher.showAppsView(true, true, false, false); mLauncher.showAppsView(true /* animated */, false /* updatePredictedApps */, false /* focusSearchBar */); } else { calculateDuration(velocity, Math.abs(mShiftRange - mAppsView.getTranslationY())); mLauncher.showWorkspace(true); Loading @@ -243,7 +244,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul LauncherLogProto.Action.UP, LauncherLogProto.HOTSEAT); } mLauncher.showAppsView(true, true, false, false); mLauncher.showAppsView(true, /* animated */ false /* updatePredictedApps */, false /* focusSearchBar */); } } } Loading @@ -260,15 +263,11 @@ public class AllAppsTransitionController implements TouchController, VerticalPul // Initialize values that should not change until #onDragEnd mStatusBarHeight = mLauncher.getDragLayer().getInsets().top; mHotseat.setVisibility(View.VISIBLE); mHotseat.bringToFront(); if (!mLauncher.isAllAppsVisible()) { mLauncher.tryAndUpdatePredictedApps(); mHotseatBackgroundColor = mHotseat.getBackgroundDrawableColor(); mHotseat.setBackgroundTransparent(true /* transparent */); mAppsView.setVisibility(View.VISIBLE); mAppsView.getContentView().setVisibility(View.VISIBLE); mAppsView.getContentView().setBackground(null); mAppsView.getRevealView().setVisibility(View.VISIBLE); mAppsView.setRevealDrawableColor(mHotseatBackgroundColor); } } Loading Loading @@ -525,6 +524,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul mCaretAnimator.setDuration(mCaretAnimationDuration); mCaretAnimator.setInterpolator(mCaretInterpolator); mHotseat.addOnLayoutChangeListener(this); mHotseat.bringToFront(); } @Override Loading