Add UiBlocker for DashboardFragment

If DashboardFragment detects blocker controllers, it won't display
until:
1. All blocking controllers finish bg works.
2. Timeout

This CL adds UiBlockerController to control this behavior and
BlockingSlicePreferenceController as an example.

Bug: 120803703
Test: atest SettingsUnitTests
Change-Id: I66fc194776d46ee49b3ec7685f3167834e673ba2
This commit is contained in:
jackqdyulei
2018-12-27 14:40:09 -08:00
parent 0057e45e6f
commit 22904a05b7
9 changed files with 303 additions and 9 deletions

View File

@@ -51,8 +51,7 @@ public class SlicePreferenceController extends BasePreferenceController implemen
public void displayPreference(PreferenceScreen screen) {
super.displayPreference(screen);
mSlicePreference = (SlicePreference) screen.findPreference(
getPreferenceKey());
mSlicePreference = screen.findPreference(getPreferenceKey());
}
@Override