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

Commit 77dab4be authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Remove multi-window developer setting from search index if disabled.

Bug: 19494313
Change-Id: I6339d06a4b2ffe712ff8a2a3e72ddfdc63244d28
parent a044b1da
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -728,7 +728,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
        return !SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals("");
    }

    private boolean showEnableMultiWindowPreference() {
    private static boolean showEnableMultiWindowPreference() {
        return !"user".equals(Build.TYPE);
    }

@@ -1781,6 +1781,9 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
                    if (!showEnableOemUnlockPreference()) {
                        keys.add(ENABLE_OEM_UNLOCK);
                    }
                    if (!showEnableMultiWindowPreference()) {
                        keys.add(ENABLE_MULTI_WINDOW_KEY);
                    }
                    return keys;
                }
            };