Made the taskbar touchable during animation to home.
Enabled taskbar touch processing while animating to home. Also excluded quick search bar from touch region, so it is not interactable during the animation & removed corresponding TODO from TaskbarView. Fixes: 368419997 Test: Manual. Enable gesture navigation. Open any application. Swipe up to go to the launcher home screen. Click any taskbar icon - the corresponding application will open. If clicking on Quick search, launcher search will be opened. Video: http://recall/-/gx8ASgewUeUS3QYohfrd1J/g6UWhF9dQZq3QsFyH0EwtK Perform the same test for buttons navigation mode. Video: http://recall/-/gx8ASgewUeUS3QYohfrd1J/gvuoSRnQfXQlejewBG1Ex8 Flag: EXEMPT bug fix Change-Id: I07280bce70dd25d5ab78210302f08c0614309130
This commit is contained in:
1 parent
3a0583272b
commit
d89732ef85
5 files changed
+87
-33
No files matched your search
@@ -192,6 +192,8 @@ public class TaskbarLauncherStateController {
|
||||
|
||||
private boolean mIsQsbInline;
|
||||
|
||||
private boolean mIsHotseatVisibleForTaskbarAlignment;
|
||||
|
||||
private final DeviceProfile.OnDeviceProfileChangeListener mOnDeviceProfileChangeListener =
|
||||
new DeviceProfile.OnDeviceProfileChangeListener() {
|
||||
@Override
|
||||
@@ -738,6 +740,7 @@ public class TaskbarLauncherStateController {
|
||||
boolean committed) {
|
||||
boolean isInStashedState = mLauncherState.isTaskbarStashed(mLauncher);
|
||||
TaskbarStashController stashController = mControllers.taskbarStashController;
|
||||
TaskbarInsetsController insetsController = mControllers.taskbarInsetsController;
|
||||
stashController.updateStateForFlag(FLAG_IN_STASHED_LAUNCHER_STATE, isInStashedState);
|
||||
Animator stashAnimator = stashController.createApplyStateAnimator(duration);
|
||||
if (stashAnimator != null) {
|
||||
@@ -746,7 +749,11 @@ public class TaskbarLauncherStateController {
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
if (isInStashedState && committed) {
|
||||
// Reset hotseat alpha to default
|
||||
mLauncher.getHotseat().setIconsAlpha(1, ALPHA_CHANNEL_TASKBAR_ALIGNMENT);
|
||||
updateIconAlphaForHome(
|
||||
/* taskbarAlpha = */ 0,
|
||||
ALPHA_CHANNEL_TASKBAR_ALIGNMENT,
|
||||
/* updateTaskbarAlpha = */ false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -871,6 +878,14 @@ public class TaskbarLauncherStateController {
|
||||
if (mIsQsbInline) {
|
||||
mLauncher.getHotseat().setQsbAlpha(targetAlpha, alphaChannel);
|
||||
}
|
||||
if (alphaChannel == ALPHA_CHANNEL_TASKBAR_ALIGNMENT) {
|
||||
boolean isHotseatVisibleForTaskbarAlignment = isHotseatVisibleForTaskbarAlignment();
|
||||
if (mIsHotseatVisibleForTaskbarAlignment != isHotseatVisibleForTaskbarAlignment) {
|
||||
mIsHotseatVisibleForTaskbarAlignment = isHotseatVisibleForTaskbarAlignment;
|
||||
mControllers.taskbarInsetsController
|
||||
.onTaskbarOrBubblebarWindowHeightOrInsetsChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Updates launcher home screen appearance accordingly to the bubble bar location. */
|
||||
@@ -932,6 +947,13 @@ public class TaskbarLauncherStateController {
|
||||
translationXAnimation.start();
|
||||
}
|
||||
|
||||
/** Returns true if hotseat icons visible for the taskbar alignment */
|
||||
public boolean isHotseatVisibleForTaskbarAlignment() {
|
||||
return mLauncher.getHotseat()
|
||||
.getIconsAlpha(ALPHA_CHANNEL_TASKBAR_ALIGNMENT).getValue() == 1;
|
||||
}
|
||||
|
||||
|
||||
private final class TaskBarRecentsAnimationListener implements
|
||||
RecentsAnimationCallbacks.RecentsAnimationListener {
|
||||
private final RecentsAnimationCallbacks mCallbacks;
|
||||
|
||||
Reference in new issue
Block a user