Make sure FLAG_IN_APP is set when launching apps from keyguard.
This flag was not being set in the case where you lock from launcher and then unlock by tapping on launcheable items from keyguard such as home controls, notifications, smartspace, etc. This change makes sure we double check if we are unlocking to launcher or not and then setting FLAG_IN_APP accordingly. Test: manual Fix: 284314711 Change-Id: If46697566d252c649a00a7b3d728a14789dc6aed
This commit is contained in:
@@ -551,6 +551,12 @@ public class TaskbarLauncherStateController {
|
||||
// updateValue ensures onIconAlignmentRatioChanged will be called if there is an actual
|
||||
// change in value
|
||||
mIconAlignment.updateValue(toAlignment);
|
||||
|
||||
// Make sure FLAG_IN_APP is set when launching applications from keyguard.
|
||||
if (!isInLauncher) {
|
||||
mControllers.taskbarStashController.updateStateForFlag(FLAG_IN_APP, true);
|
||||
mControllers.taskbarStashController.applyState(0);
|
||||
}
|
||||
} else if (mIconAlignment.isAnimatingToValue(toAlignment)
|
||||
|| mIconAlignment.isSettledOnValue(toAlignment)) {
|
||||
// Already at desired value, but make sure we run the callback at the end.
|
||||
|
||||
Reference in New Issue
Block a user