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

Commit 47d901aa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Add feature for cast screen."

parents 5f8a9819 c60a5cdc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -87,6 +87,9 @@
    <!-- Whether to hide wifi hotspot -->
    <bool name="hide_wifi_hotspot">false</bool>

    <!-- Whether to hide cast screen -->
    <bool name="hide_cast_screen">false</bool>

    <!-- Whether notify user that current connected ap is CMCC -->
    <bool name="connect_to_cmcc_notify">false</bool>

+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
    private static final String KEY_DOZE = "doze";
    private static final String KEY_AUTO_BRIGHTNESS = "auto_brightness";
    private static final String KEY_AUTO_ROTATE = "auto_rotate";
    private static final String KEY_CAST_SCREEN = "wifi_display";

    private static final int DLG_GLOBAL_CHANGE_WARNING = 1;

@@ -186,6 +187,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
        } else {
            removePreference(KEY_AUTO_ROTATE);
        }
        if (getResources().getBoolean(R.bool.hide_cast_screen)){
            removePreference(KEY_CAST_SCREEN);
        }
    }

    private static boolean allowAllRotations(Context context) {