mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Fix linter errors
This commit is contained in:
parent
9ed9abba46
commit
00d3a9ce18
@ -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:
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user