Cherish: Add Network traffic location

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Anushek Prasal
2020-05-13 21:16:19 +05:30
committed by Hưng Phan
parent bc63f10c90
commit 02f68e76af
3 changed files with 22 additions and 0 deletions

View File

@@ -407,4 +407,15 @@
<item>2</item>
<item>3</item>
</string-array>
<!-- Network traffic location -->
<string-array name="network_traffic_location_entries" translatable="false">
<item>@string/network_traffic_statusbar</item>
<item>@string/network_traffic_qs_header</item>
</string-array>
<string-array name="network_traffic_location_values" translatable="false">
<item>0</item>
<item>1</item>
</string-array>
</resources>

View File

@@ -504,5 +504,8 @@
<string name="traffic_summary">Customize the traffic indicators</string>
<string name="network_traffic_state_title">Show network traffic</string>
<string name="network_traffic_autohide_threshold_title">Auto-hide threshold</string>
<string name="network_traffic_location_title">Location</string>
<string name="network_traffic_statusbar">Status bar</string>
<string name="network_traffic_qs_header">QS header</string>
</resources>

View File

@@ -23,6 +23,14 @@
android:key="network_traffic_state"
android:title="@string/network_traffic_state_title"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="network_traffic_location"
android:title="@string/network_traffic_location_title"
android:entries="@array/network_traffic_location_entries"
android:entryValues="@array/network_traffic_location_values"
android:defaultValue="0"
android:dependency="network_traffic_state" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="network_traffic_autohide_threshold"