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; break;
case VIBRATE: case VIBRATE:
final Intent intentVibrate = new Intent(FindPhoneActivity.ACTION_VIBRATE); final Intent intentVibrate = new Intent(FindPhoneActivity.ACTION_VIBRATE);
intentVibrate.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentVibrate); LocalBroadcastManager.getInstance(context).sendBroadcast(intentVibrate);
break; break;
case RING: case RING:
final Intent intentRing = new Intent(FindPhoneActivity.ACTION_RING); final Intent intentRing = new Intent(FindPhoneActivity.ACTION_RING);
intentRing.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentRing); LocalBroadcastManager.getInstance(context).sendBroadcast(intentRing);
break; break;
case STOP: case STOP:
final Intent intentStop = new Intent(FindPhoneActivity.ACTION_FOUND); final Intent intentStop = new Intent(FindPhoneActivity.ACTION_FOUND);
intentStop.setPackage(BuildConfig.APPLICATION_ID);
LocalBroadcastManager.getInstance(context).sendBroadcast(intentStop); LocalBroadcastManager.getInstance(context).sendBroadcast(intentStop);
break; break;
default: default:

View File

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

View File

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