Fixed a bug where the app thought location was disabled but was actually set to device only; Fixed rare bug where the app wouldn't start on boot; Lowered Target SDK to 23 so the app cannot be uploaded to Google Play; Bumped version to Alpha 9

This commit is contained in:
dosse91
2019-08-17 10:12:46 +02:00
parent 35a9d96398
commit 8a41df7c51
5 changed files with 36 additions and 19 deletions
@@ -3,6 +3,7 @@ package com.dosse.airpods;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.util.Log;
/**
@@ -11,6 +12,10 @@ import android.util.Log;
public class Starter extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
context.startService(new Intent(context,PodsService.class));
startPodsService(context);
}
public static final void startPodsService(Context context){
context.startService(new Intent(context, PodsService.class));
}
}