mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-09 03:37:03 +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;
|
||||
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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user