Add getter for ExpectedRotationCheckEnabled

Used by flicker to disable and then reset this value when performing certain actions that require ExpectedRotationCheckEnabled to be false but then we want to restore to the initial value.

Bug: 300065764

Test: n/a
Change-Id: I650e15b206984b5fd7a2313fb63308e4c551c30a
This commit is contained in:
Pablo Gamito
2023-09-21 16:34:03 +00:00
parent b604e71fe8
commit e5ea6a2798
@@ -721,6 +721,10 @@ public final class LauncherInstrumentation {
mExpectedRotationCheckEnabled = expectedRotationCheckEnabled;
}
public boolean getExpectedRotationCheckEnabled() {
return mExpectedRotationCheckEnabled;
}
public String getNavigationModeMismatchError(boolean waitForCorrectState) {
final int waitTime = waitForCorrectState ? WAIT_TIME_MS : 0;
final NavigationModel navigationModel = getNavigationModel();