diff options
author | cyberta <cyberta@riseup.net> | 2020-02-27 22:53:25 -0600 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2020-02-27 22:53:25 -0600 |
commit | 2b22e4ad47ae7df24b15ea28b08e60a4999a96cf (patch) | |
tree | 135dbaa026ceca6729e24ccfbd98ac6eb92cfdad /app/src/main/res | |
parent | d41561376321d04ce585ac1f45221cb93446e55f (diff) |
enable/disable save battery switch in navigation drawer depending on tethering state
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/f_drawer_main.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/res/layout/f_drawer_main.xml b/app/src/main/res/layout/f_drawer_main.xml index 191d547f..7e6291b7 100644 --- a/app/src/main/res/layout/f_drawer_main.xml +++ b/app/src/main/res/layout/f_drawer_main.xml @@ -65,6 +65,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" app:text="@string/save_battery" + app:subtitle="@string/subtitle_save_battery" app:icon="@drawable/ic_battery_36" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b5fc2fa2..61cedffb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -102,6 +102,7 @@ <string name="vpn_certificate_is_invalid">VPN certificate is invalid. Try to download a new one.</string> <string name="vpn_certificate_user_message">The VPN certificate is invalid. Please log in to download a new one.</string> <string name="save_battery">Save battery</string> + <string name="subtitle_save_battery">Disabled while VPN Hotspot on</string> <string name="save_battery_message">Background data connections will hibernate when your phone is inactive.</string> <string name="always_on_vpn">Always-on VPN</string> <string name="subtitle_always_on_vpn">Open Android System Settings</string> |