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/java/se/leap/bitmaskclient/views | |
parent | d41561376321d04ce585ac1f45221cb93446e55f (diff) |
enable/disable save battery switch in navigation drawer depending on tethering state
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/views')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/views/IconSwitchEntry.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/views/IconSwitchEntry.java b/app/src/main/java/se/leap/bitmaskclient/views/IconSwitchEntry.java index 02347b05..8bb809fd 100644 --- a/app/src/main/java/se/leap/bitmaskclient/views/IconSwitchEntry.java +++ b/app/src/main/java/se/leap/bitmaskclient/views/IconSwitchEntry.java @@ -88,6 +88,10 @@ public class IconSwitchEntry extends LinearLayout { textView.setText(id); } + public void showSubtitle(boolean show) { + subtitleView.setVisibility(show ? VISIBLE : GONE); + } + public void setIcon(@DrawableRes int id) { iconView.setImageResource(id); } |