Update frameworks/base patches for android-7.1.1_r21
[GitHub/Stricted/android_vendor_extra.git] / patches / frameworks / base / 0031-SystemUI-Expose-switch-bar-title.patch
1 From 92c569669b916a82eb8b7983514e49cb5d2b6281 Mon Sep 17 00:00:00 2001
2 From: daveyannihilation <daveyannihilation@hotmail.com>
3 Date: Sun, 1 Jan 2017 01:47:53 -0700
4 Subject: [PATCH 31/39] SystemUI: Expose switch bar title
5
6 This is needed for the power notifications switchbar in SystemUI Tuner, amongst other things.
7
8 Change-Id: I86f04840c2be46519509556b8d0061cefe26f631
9 ---
10 packages/SystemUI/res/layout/switch_bar.xml | 3 +--
11 packages/SystemUI/res/values/projekt_styles.xml | 24 ++++++++++++++++++++++++
12 2 files changed, 25 insertions(+), 2 deletions(-)
13 create mode 100644 packages/SystemUI/res/values/projekt_styles.xml
14
15 diff --git a/packages/SystemUI/res/layout/switch_bar.xml b/packages/SystemUI/res/layout/switch_bar.xml
16 index 41cdb78392a..344c5aa0531 100644
17 --- a/packages/SystemUI/res/layout/switch_bar.xml
18 +++ b/packages/SystemUI/res/layout/switch_bar.xml
19 @@ -33,8 +33,7 @@
20 android:paddingStart="48dp"
21 android:maxLines="2"
22 android:ellipsize="end"
23 - android:textAppearance="@android:style/TextAppearance.Material.Title"
24 - android:textColor="?android:attr/textColorPrimaryInverse"
25 + android:textAppearance="@style/TextAppearance.SwitchBar"
26 android:textAlignment="viewStart"
27 android:text="@string/switch_bar_on" />
28
29 diff --git a/packages/SystemUI/res/values/projekt_styles.xml b/packages/SystemUI/res/values/projekt_styles.xml
30 new file mode 100644
31 index 00000000000..f49834bc202
32 --- /dev/null
33 +++ b/packages/SystemUI/res/values/projekt_styles.xml
34 @@ -0,0 +1,24 @@
35 +<?xml version="1.0" encoding="utf-8"?>
36 +<!--
37 + Copyright (c) 2016 Projekt Substratum
38 +
39 + Licensed under the Apache License, Version 2.0 (the "License");
40 + you may not use this file except in compliance with the License.
41 + You may obtain a copy of the License at
42 +
43 + http://www.apache.org/licenses/LICENSE-2.0
44 +
45 + Unless required by applicable law or agreed to in writing, software
46 + distributed under the License is distributed on an "AS IS" BASIS,
47 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 + See the License for the specific language governing permissions and
49 + limitations under the License.
50 +-->
51 +
52 +<resources>
53 + <!-- Switch bar text appearance -->
54 + <style name="TextAppearance.SwitchBar" parent="@android:style/TextAppearance.Material.Title">
55 + <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
56 + </style>
57 +</resources>
58 +
59 --
60 2.11.1
61