1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

Fix main fab behavior

This commit is contained in:
marco.altomonte 2020-11-01 11:19:20 +01:00 committed by vanous
parent e3a5a63e08
commit ac66885848

View File

@ -333,7 +333,7 @@ public class ControlCenterv2 extends AppCompatActivity
if (GBApplication.getPrefs().getBoolean("display_add_device_fab", true)) { if (GBApplication.getPrefs().getBoolean("display_add_device_fab", true)) {
fab.show(); fab.show();
} else { } else {
if (deviceListView.getChildCount() < 1) { if (deviceManager.getDevices().size() < 1) {
fab.show(); fab.show();
} else { } else {
fab.hide(); fab.hide();