mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-14 11:01:06 +01:00
17 lines
534 B
Java
17 lines
534 B
Java
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
public class StopServiceReceiver extends BroadcastReceiver {
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
Intent stopIntent = new Intent(context, BluetoothCommunicationService.class);
|
|
context.stopService(stopIntent);
|
|
|
|
Intent quitIntent = new Intent(ControlCenter.ACTION_QUIT);
|
|
context.sendBroadcast(quitIntent);
|
|
}
|
|
}
|