Refresh after clearing, tweak warn threshold.

Refresh UI after clearing cache.  Hide user header on single-user
devices to match UX spec.  Refine adopted storage warning threshold
based on experiments with various devices.

For example, a typical internal storage device runs the benchmark
in about 600ms.  Very fast SD cards take about 1700ms, moderate speed
SD cards take about 3800ms, and slow SD cards take about 6800ms.

Bug: 22345902, 22487370
Change-Id: I6066f3b78dbb32277ae94b79e325500724f83c7e
This commit is contained in:
Jeff Sharkey
2015-07-30 11:30:13 -07:00
parent 2a56d7f23b
commit f99b424f3b
3 changed files with 27 additions and 12 deletions

View File

@@ -176,6 +176,10 @@ public abstract class StorageWizardBase extends Activity {
}
}
protected void setKeepScreenOn(boolean keepScreenOn) {
getSetupWizardLayout().setKeepScreenOn(keepScreenOn);
}
public void onNavigateNext() {
throw new UnsupportedOperationException();
}