NetworkTraffic: Show single traffic for statusbar & allow custom font size [2/2].

Based on commits by idoybh, SKULSHADY and SDB:
* https://github.com/pixeldust-project-caf/android_packages_apps_PixelDustSettings/commit/8f52988
* https://github.com/pixeldust-project-caf/android_packages_apps_PixelDustSettings/commit/0a5424b

Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com>
Co-authored-by: SuperDroidBond <superdroidbond@yahoo.com>
Signed-off-by: spezi77 <spezi7713@gmx.net>
Change-Id: I26c826066569af2cb07c2a9e6c03f6c71f8a18f7
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SKULSHADY
2022-02-03 20:48:33 +01:00
committed by Hưng Phan
parent a855197418
commit 3b1960c6ea
3 changed files with 27 additions and 1 deletions

View File

@@ -512,5 +512,6 @@
<string name="network_traffic_dynamic">Dynamic</string>
<string name="network_traffic_download">Download</string>
<string name="network_traffic_upload">Upload</string>
<string name="network_traffic_font_size">Single net font size</string>
</resources>

View File

@@ -51,4 +51,12 @@
settings:units="sec"
android:defaultValue="1" />
</PreferenceScreen>
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="network_traffic_font_size"
android:title="@string/network_traffic_font_size"
android:max="20"
android:min="12"
settings:defaultValue="18"
settings:units="dp" />
</PreferenceScreen>