Merge "RESTRICT AUTOMERGE FRP bypass defense in App battery usage page" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a64d062059
@@ -279,6 +279,11 @@ public class AdvancedPowerUsageDetail extends DashboardFragment implements
|
||||
mLogStringBuilder = new StringBuilder("onResume mode = ").append(mOptimizationMode);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldSkipForInitialSUW() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
|
@@ -817,4 +817,9 @@ public class AdvancedPowerUsageDetailTest {
|
||||
|
||||
verify(mBackupManager).dataChanged();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldSkipForInitialSUW_returnTrue() {
|
||||
assertThat(mFragment.shouldSkipForInitialSUW()).isTrue();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user