Created
April 15, 2017 09:20
-
-
Save MM2-0/fcb6f9ed18db47d8a2b42a0b0aae5371 to your computer and use it in GitHub Desktop.
Hide superuser icon patch for LineageOS 14.1 based ROMs (Apply this to frameworks/base)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 52e48828c81546cc7dfca06c7893c4befad4ed98 Mon Sep 17 00:00:00 2001 | |
From: "U.N.Owen" <maxmustermannbsp@gmail.com> | |
Date: Sat, 15 Apr 2017 11:18:35 +0200 | |
Subject: [PATCH] Add possibility to hide su icon | |
--- | |
packages/SystemUI/res/values/strings.xml | 3 +++ | |
packages/SystemUI/res/xml/tuner_prefs.xml | 4 ++++ | |
2 files changed, 7 insertions(+) | |
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml | |
index 4cd32e8f..cfe66ed3 100644 | |
--- a/packages/SystemUI/res/values/strings.xml | |
+++ b/packages/SystemUI/res/values/strings.xml | |
@@ -1202,6 +1202,9 @@ | |
<!-- Name of the alarm status bar icon. --> | |
<string name="status_bar_alarm">Alarm</string> | |
+ <!-- Name of the su status bar icon. --> | |
+ <string name="status_bar_su">Superuser</string> | |
+ | |
<!-- Name of the work status bar icon. --> | |
<string name="status_bar_work">Work profile</string> | |
diff --git a/packages/SystemUI/res/xml/tuner_prefs.xml b/packages/SystemUI/res/xml/tuner_prefs.xml | |
index 49be08cd..b4646c28 100644 | |
--- a/packages/SystemUI/res/xml/tuner_prefs.xml | |
+++ b/packages/SystemUI/res/xml/tuner_prefs.xml | |
@@ -86,6 +86,10 @@ | |
android:key="alarm_clock" | |
android:title="@string/status_bar_alarm" /> | |
+ <com.android.systemui.tuner.StatusBarSwitch | |
+ android:key="su" | |
+ android:title="@string/status_bar_su" /> | |
+ | |
<!-- secure --> | |
<com.android.systemui.tuner.ClockPreference | |
-- | |
2.12.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment