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

Commit 242d9527 authored by Bruno Martins's avatar Bruno Martins
Browse files

SystemUI: Expose camera, location and microphone icons to Tuner

Specially for devices with very wide notches, it can be particularly
useful for example to be able to disable location icon because it avoids
missing the sight of wifi and network signal when GPS apps are in use.

Change-Id: I6abfa881fdd5afd523242dfb1e1178e6ac25cd45
parent fca7fac0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
<!--
/**
 * Copyright (c) 2015, The CyanogenMod Project
 * Copyright (c) 2017-2019, The LineageOS Project
 * Copyright (c) 2017-2020, The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -111,6 +111,9 @@
    <string name="quick_settings_aod_label">AOD</string>
    <string name="quick_settings_aod_off_powersave_label">AOD off\nBattery saver</string>

    <!-- Name of the battery status bar icon. -->
    <!-- Name of the additional status bar icons also exposed with SystemUI Tuner -->
    <string name="status_bar_battery">Battery</string>
    <string name="status_bar_camera">Camera</string>
    <string name="status_bar_location">Location</string>
    <string name="status_bar_microphone">Microphone</string>
</resources>
+12 −0
Original line number Diff line number Diff line
@@ -50,6 +50,10 @@
    <!-- tty -->
    <!-- speakerphone -->

    <com.android.systemui.tuner.StatusBarSwitch
        android:key="microphone"
        android:title="@string/status_bar_microphone" />

    <com.android.systemui.tuner.StatusBarSwitch
        android:key="zen"
        android:title="@string/quick_settings_dnd_label" />
@@ -76,6 +80,10 @@
        android:key="airplane"
        android:title="@string/status_bar_airplane" />

    <com.android.systemui.tuner.StatusBarSwitch
        android:key="location"
        android:title="@string/status_bar_location" />

    <!-- other weird signal stuff -->

    <com.android.systemui.tuner.StatusBarSwitch
@@ -86,6 +94,10 @@
        android:key="alarm_clock"
        android:title="@string/status_bar_alarm" />

    <com.android.systemui.tuner.StatusBarSwitch
        android:key="camera"
        android:title="@string/status_bar_camera" />

    <!-- secure -->

    <com.android.systemui.tuner.StatusBarSwitch