Merge "Testing to see if waiting for transition to end will fix flaky tests" into sc-v2-dev am: 58763e47d6 am: 45c6ef8f8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16200260 Change-Id: I13394c31ab097f58818d5d902389feda1eec425c
This commit is contained in:
commit
bccc19ba7e
3 files changed
+16
-6
No files matched your search
@@ -84,7 +84,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
+ ", mCurrentStableState:" + mCurrentStableState
|
||||
+ ", mState:" + mState
|
||||
+ ", mRestState:" + mRestState
|
||||
+ ", isInTransition:" + (mConfig.currentAnimation != null) + ")";
|
||||
+ ", isInTransition:" + isInTransition() + ")";
|
||||
}
|
||||
|
||||
public void dump(String prefix, PrintWriter writer) {
|
||||
@@ -93,7 +93,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
writer.println(prefix + "\tmCurrentStableState:" + mCurrentStableState);
|
||||
writer.println(prefix + "\tmState:" + mState);
|
||||
writer.println(prefix + "\tmRestState:" + mRestState);
|
||||
writer.println(prefix + "\tisInTransition:" + (mConfig.currentAnimation != null));
|
||||
writer.println(prefix + "\tisInTransition:" + isInTransition());
|
||||
}
|
||||
|
||||
public StateHandler[] getStateHandlers() {
|
||||
@@ -129,6 +129,13 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> {
|
||||
&& (mConfig.targetState == null || mConfig.targetState == state);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@code true} If there is an active transition.
|
||||
*/
|
||||
public boolean isInTransition() {
|
||||
return mConfig.currentAnimation != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see #goToState(STATE_TYPE, boolean, AnimatorListener)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user