Cherish:Optional VoWiFi icon [2/2]

Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: Ie749adb282bde9e70c3e57a1daec4e945e128195
This commit is contained in:
DennySPb
2020-07-04 12:25:38 +07:00
committed by Hung Phan
parent 8aa220813f
commit c5be2eb978
4 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 crDroid Android Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:pathData="M 0 0 H 24 V 24 H 0 V 0 Z" />
<path
android:fillColor="#000000"
android:pathData="M22,4.95C21.79,4.78,19.67,3,16.5,3c-3.18,0-5.29,1.78-5.5,1.95L16.5,12L22,4.95z" />
<path
android:fillColor="#000000"
android:pathData="M20,15.51c-1.24,0-2.45-0.2-3.57-0.57c-0.35-0.12-0.75-0.03-1.02,0.24l-2.2,2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2 C9.1,8.31,9.18,7.92,9.07,7.57C8.7,6.45,8.5,5.25,8.5,4c0-0.55-0.45-1-1-1H4C3.45,3,3,3.45,3,4c0,9.39,7.61,17,17,17 c0.55,0,1-0.45,1-1v-3.49C21,15.96,20.55,15.51,20,15.51z" />
</vector>

View File

@@ -451,4 +451,17 @@
<item>2</item>
<item>3</item>
</string-array>
<!-- VoWiFi Icon -->
<string-array name="vowifi_icon_entries" translatable="false">
<item>@string/vowifi_icon_disabled</item>
<item>@string/vowifi_icon_enabled</item>
<item>@string/vowifi_icon_enabled_volte_disabled</item>
</string-array>
<string-array name="vowifi_icon_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
</resources>

View File

@@ -526,4 +526,10 @@
<!-- Volume panel Hide Things-->
<string name="hide_things_volumepanel_title">Hide Things below volume panel</string>
<string name="hide_things_volumepanel_summary">Hide Settings and Ringer Container below volume panel</string>
<!-- VoWiFi icon -->
<string name="vowifi_icon_title">VoWiFi icon</string>
<string name="vowifi_icon_enabled">VoWiFi icon enabled</string>
<string name="vowifi_icon_disabled">VoWiFi icon disabled</string>
<string name="vowifi_icon_enabled_volte_disabled">VoWiFi instead of VoLTE icon</string>
</resources>

View File

@@ -61,6 +61,15 @@
android:summary="%s"
android:defaultValue="0"/>
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="vowifi_icon"
android:icon="@drawable/ic_vowifi"
android:title="@string/vowifi_icon_title"
android:entries="@array/vowifi_icon_entries"
android:entryValues="@array/vowifi_icon_values"
android:summary="%s"
android:defaultValue="0"/>
<Preference
android:title="@string/statusbar_items_title"
android:icon="@drawable/ic_shortcuts">