Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 691c0c3f authored by Matías Hernández's avatar Matías Hernández
Browse files

Fix unwanted animation when opening Modes list

Fixes: 356151158
Test: manual
Flag: android.app.modes_ui
Change-Id: Ibbc54c68c4bcbf75e908d4a36ef2d8f609b5b797
parent 441a2024
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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