1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

Fix linter errors

This commit is contained in:
José Rebelo 2024-10-04 22:56:39 +01:00
parent 9ed9abba46
commit 00d3a9ce18
3 changed files with 6 additions and 0 deletions

View File

@ -257,14 +257,17 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
break;
case VIBRATE:
final Intent intentVibrate = new Intent(FindPhoneActivity.ACTION_VIBRATE);
intentVibrate.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentVibrate);
break;
case RING:
final Intent intentRing = new Intent(FindPhoneActivity.ACTION_RING);
intentRing.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentRing);
break;
case STOP:
final Intent intentStop = new Intent(FindPhoneActivity.ACTION_FOUND);
intentStop.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentStop);
break;
default:

View File

@ -761,6 +761,7 @@ public class FossilWatchAdapter extends WatchAdapter {
log("Button press on button " + button);
Intent i = new Intent(QHYBRID_EVENT_BUTTON_PRESS);
i.setPackage(BuildConfig.APPLICATION_ID);
i.putExtra("BUTTON", button);
getContext().sendBroadcast(i);
}

View File

@ -46,6 +46,7 @@ import java.util.NoSuchElementException;
import java.util.Queue;
import java.util.TimeZone;
import nodomain.freeyourgadget.gadgetbridge.BuildConfig;
import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventBatteryInfo;
import nodomain.freeyourgadget.gadgetbridge.devices.DeviceManager;
import nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.NotificationConfiguration;
@ -342,6 +343,7 @@ public class MisfitWatchAdapter extends WatchAdapter {
logger.debug("Button press on button " + button);
Intent i = new Intent(QHYBRID_EVENT_BUTTON_PRESS);
i.setPackage(BuildConfig.APPLICATION_ID);
i.putExtra("BUTTON", button);
//ByteBuffer buffer = ByteBuffer.allocate(16);