mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Fix string comparison
This commit is contained in:
parent
2618adac17
commit
e489d0d811
@ -59,11 +59,11 @@ public class HuaweiCoordinator {
|
||||
byte[] commands = GB.hexStringToByteArray(getCapabilitiesSharedPreferences().getString(key, "00"));
|
||||
this.commandsPerService.put(service, commands);
|
||||
} catch (NumberFormatException e) {
|
||||
if (key == "expandCapabilities")
|
||||
if (key.equals("expandCapabilities"))
|
||||
this.expandCapabilities = GB.hexStringToByteArray(getCapabilitiesSharedPreferences().getString(key, "00"));
|
||||
if (key == "notificationCapabilities")
|
||||
if (key.equals("notificationCapabilities"))
|
||||
this.notificationCapabilities = (byte)getCapabilitiesSharedPreferences().getInt(key, -0x01);
|
||||
if (key == "notificationConstraints")
|
||||
if (key.equals("notificationConstraints"))
|
||||
this.notificationConstraints = ByteBuffer.wrap(GB.hexStringToByteArray(
|
||||
getCapabilitiesSharedPreferences().getString(
|
||||
key,
|
||||
|
Loading…
Reference in New Issue
Block a user