mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +01:00
fix crash
This commit is contained in:
parent
a12a76313c
commit
412c771d59
@ -185,7 +185,7 @@ public class ControlCenter extends Activity {
|
||||
|
||||
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
String miAddr = sharedPrefs.getString("development_miaddr", null);
|
||||
if (miAddr != null && !miAddr.equals("") && !miAddr.equals(connectedDevice.getAddress())) {
|
||||
if (miAddr != null && !miAddr.equals("") && (connectedDevice == null || !miAddr.equals(connectedDevice.getAddress()))) {
|
||||
deviceList.add(new GBDevice(miAddr, "MI", GBDevice.Type.MIBAND));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user