1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 13:26:50 +01:00

reformatting

This commit is contained in:
dakhnod 2019-07-25 10:56:03 +02:00
parent 15b2f0ddf5
commit 2ca1d69a17

View File

@ -205,9 +205,9 @@ public class QHybridSupport extends QHybridBaseSupport {
for (int i = 2; i <= 7; i++)
builder.notify(getCharacteristic(UUID.fromString("3dda000" + i + "-957f-7d4a-34a6-74696673696d")), true);
builder.read(getCharacteristic(UUID.fromString("00002a00-0000-1000-8000-00805f9b34fb")));
builder.read(getCharacteristic(UUID.fromString("00002a24-0000-1000-8000-00805f9b34fb")));
builder.read(getCharacteristic(UUID.fromString("00002a26-0000-1000-8000-00805f9b34fb")));
builder.read(getCharacteristic(UUID.fromString("00002a00-0000-1000-8000-00805f9b34fb")))
.read(getCharacteristic(UUID.fromString("00002a24-0000-1000-8000-00805f9b34fb")))
.read(getCharacteristic(UUID.fromString("00002a26-0000-1000-8000-00805f9b34fb")));
helper = new PackageConfigHelper(getContext());
@ -238,8 +238,10 @@ public class QHybridSupport extends QHybridBaseSupport {
Log.d("Service", "handling notification");
if(config.getRespectSilentMode()) {
int mode = ((AudioManager) getContext().getApplicationContext().getSystemService(Context.AUDIO_SERVICE)).getRingerMode();
if (mode == AudioManager.RINGER_MODE_SILENT && config.getRespectSilentMode()) return;
if (mode == AudioManager.RINGER_MODE_SILENT) return;
}
playNotification(config);
}
@ -539,7 +541,8 @@ public class QHybridSupport extends QHybridBaseSupport {
}
try {
queueWrite(requestQueue.remove());
}catch (NoSuchElementException e){}
} catch (NoSuchElementException e) {
}
return true;
}