Cherish:Status network traffic [2/2]
Change-Id: I914065e7f44e2b7a0299c2f219ec519e07b16b68 Signed-off-by: Arghya Chanda <arghyac35@gmail.com> Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -266,5 +266,11 @@
|
||||
<string name="qs_running_services_summary">Enable the running services icon in the footer</string>
|
||||
<string name="qs_edit_title">Edit Icon</string>
|
||||
<string name="qs_edit_summary">Enable the tile edit icon in the footer</string>
|
||||
|
||||
<!-- Statusbar net monitor -->
|
||||
<string name="traffic_title">Traffic Indicators</string>
|
||||
<string name="network_traffic_state_title">Network traffic</string>
|
||||
<string name="network_traffic_state_summary">Show net activity in statusbar</string>
|
||||
<string name="network_traffic_autohide_threshold_title">Net activity autohide threshold (KB/s)</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
android:key="status_bar_clock"
|
||||
android:fragment="com.cherish.settings.fragments.ClockDateSettings"
|
||||
android:title="@string/status_bar_clock_title" />
|
||||
|
||||
<Preference
|
||||
android:key="traffic"
|
||||
android:fragment="com.cherish.settings.fragments.Traffic"
|
||||
android:title="@string/traffic_title" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="show_fourg_icon"
|
||||
|
||||
31
res/xml/traffic.xml
Normal file
31
res/xml/traffic.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright (C) 2020 The CherishOS 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.
|
||||
-->
|
||||
|
||||
<PreferenceScreen
|
||||
android:title="@string/network_traffic_state_title"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="network_traffic_state"
|
||||
android:title="@string/network_traffic_state_title"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="network_traffic_autohide_threshold"
|
||||
android:title="@string/network_traffic_autohide_threshold_title"
|
||||
android:max="10"
|
||||
settings:min="0"
|
||||
settings:units="" />
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user