2015-01-30 11:59:36 +01:00
|
|
|
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);
|
2015-02-06 13:55:44 +01:00
|
|
|
|
2015-02-12 16:00:45 +01:00
|
|
|
Intent quitIntent = new Intent(ControlCenter.ACTION_QUIT);
|
2015-02-06 13:55:44 +01:00
|
|
|
context.sendBroadcast(quitIntent);
|
2015-01-30 11:59:36 +01:00
|
|
|
}
|
|
|
|
}
|