diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-19 21:23:50 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-19 21:23:50 +0200 |
commit | 7f79f764d51f8b1d7dc3fd9458373baccd0cc06c (patch) | |
tree | 282a7de210e3a39a01bd8c62896eb5a24388c771 /app/src/main/java | |
parent | 5e38778a848b70c615bd5680a4c4320b4d98199d (diff) |
fix #8966, battery dialog reopening
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java index 21a25997..7f52911b 100644 --- a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java @@ -289,6 +289,9 @@ public class NavigationDrawerFragment extends Fragment { saveBattery = drawerView.findViewById(R.id.battery_switch); saveBattery.setChecked(getSaveBattery(getContext())); saveBattery.setOnCheckedChangeListener(((buttonView, isChecked) -> { + if (!buttonView.isPressed()) { + return; + } if (isChecked) { showExperimentalFeatureAlert(); } else { |