Invalidate snapshot of home if its UI is changed
Snapshot may be enabled for home task when turning off
screen. If home UI has changed after screen off, the
snapshot should not be used to avoid ugly visual effect.
Bug: 140811348
Test: Lock/unlock device while home is on top with 4 cases:
1. All apps is shown.
2. Overview is shown.
3. Options menu is shown.
4. Quick search bar is active.
The expected result should be no starting window
when unlocking because the snapshot is dropped.
Change-Id: I4bd9926b6f9332ac16b1b3a25ffdd44706015a33
This commit is contained in:
1 parent
e8dc428a02
commit
0ae61c8d29
3 files changed
+38
No files matched your search
@@ -163,6 +163,15 @@ public class LauncherStateManager {
|
||||
return !mLauncher.isForceInvisible() && mLauncher.isStarted();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@code true} if the state matches the current state and there is no active
|
||||
* transition to different state.
|
||||
*/
|
||||
public boolean isInStableState(LauncherState state) {
|
||||
return mState == state && mCurrentStableState == state
|
||||
&& (mConfig.mTargetState == null || mConfig.mTargetState == state);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see #goToState(LauncherState, boolean, Runnable)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user