Fix unwanted animation when opening Modes list
Fixes: 356151158 Test: manual Flag: android.app.modes_ui Change-Id: Ibbc54c68c4bcbf75e908d4a36ef2d8f609b5b797
This commit is contained in:
@@ -38,7 +38,8 @@ import java.util.Map;
|
||||
* containing links to each individual mode. This is a central controller that populates and updates
|
||||
* all the preferences that then lead to a mode configuration page.
|
||||
*/
|
||||
class ZenModesListPreferenceController extends BasePreferenceController {
|
||||
class ZenModesListPreferenceController extends BasePreferenceController
|
||||
implements BasePreferenceController.UiBlocker {
|
||||
protected static final String KEY = "zen_modes_list";
|
||||
|
||||
protected ZenModesBackend mBackend;
|
||||
@@ -48,11 +49,6 @@ class ZenModesListPreferenceController extends BasePreferenceController {
|
||||
mBackend = backend;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
return KEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
@AvailabilityStatus
|
||||
public int getAvailabilityStatus() {
|
||||
@@ -97,6 +93,8 @@ class ZenModesListPreferenceController extends BasePreferenceController {
|
||||
for (String key : originalPreferences.keySet()) {
|
||||
category.removePreferenceRecursively(key);
|
||||
}
|
||||
|
||||
setUiBlockerFinished(true);
|
||||
}
|
||||
|
||||
// Provide search data for the modes, which will allow users to reach the modes page if they
|
||||
|
Reference in New Issue
Block a user