mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 11:26:47 +01:00
fixed string comparison
This commit is contained in:
parent
f3dc0225ec
commit
3bbc7a9046
@ -352,7 +352,7 @@ public class ConfigActivity extends AbstractGBActivity {
|
||||
}
|
||||
});
|
||||
|
||||
if (device.getDeviceInfo(QHybridSupport.ITEM_EXTENDED_VIBRATION_SUPPORT).getDetails().equals("true")) {
|
||||
if ("true".equals(device.getDeviceInfo(QHybridSupport.ITEM_EXTENDED_VIBRATION_SUPPORT).getDetails())) {
|
||||
final int strengthProgress = (int) (Math.log(Double.parseDouble(device.getDeviceInfo(QHybridSupport.ITEM_VIBRATION_STRENGTH).getDetails()) / 25) / Math.log(2));
|
||||
|
||||
setSettingsEnabled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user