mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Remove some now useless code
This commit is contained in:
parent
d2053b32bf
commit
26ff7d67e3
@ -250,15 +250,6 @@ public class ControlCenterv2 extends AppCompatActivity
|
|||||||
|
|
||||||
private void refreshPairedDevices() {
|
private void refreshPairedDevices() {
|
||||||
List<GBDevice> deviceList = deviceManager.getDevices();
|
List<GBDevice> deviceList = deviceManager.getDevices();
|
||||||
GBDevice connectedDevice = null;
|
|
||||||
|
|
||||||
for (GBDevice device : deviceList) {
|
|
||||||
if (device.isConnected() || device.isConnecting()) {
|
|
||||||
connectedDevice = device;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (deviceList.isEmpty()) {
|
if (deviceList.isEmpty()) {
|
||||||
background.setVisibility(View.VISIBLE);
|
background.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user