AF/FR Fix onActivityResult condition.

Chase list bug. Accidentally bailed on true effectively.

Manual tested by going to Settings > System > Erase All Data
And then hitting then successfully wiping and reseting.

Test: make RunSettingsRoboTests -j40
Bug: 72324059
Change-Id: Ib2a155820811f0ec62a45c1312475c24646ede76
This commit is contained in:
Carlos Valdivia
2018-01-23 09:12:59 -08:00
parent 475fa50461
commit 5dd6ed470e
2 changed files with 14 additions and 2 deletions

View File

@@ -270,6 +270,13 @@ public class MasterClearTest {
assertThat(mMasterClear.tryShowAccountConfirmation()).isTrue();
}
@Test
public void testIsValidRequestCode() {
assertThat(mMasterClear.isValidRequestCode(MasterClear.KEYGUARD_REQUEST)).isTrue();
assertThat(mMasterClear.isValidRequestCode(MasterClear.CREDENTIAL_CONFIRM_REQUEST)).isTrue();
assertThat(mMasterClear.isValidRequestCode(0)).isFalse();
}
private void initScrollView(int height, int scrollY, int childBottom) {
when(mScrollView.getHeight()).thenReturn(height);
when(mScrollView.getScrollY()).thenReturn(scrollY);