Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38e964fd authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

fix BatteryStateReceiver.java

parent fee918fb
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -28,10 +28,11 @@ public class BatteryStateReceiver extends BroadcastReceiver {
        Log.i(TAG, "onReceive");

        String intentAction = intent.getAction();
        if(intentAction != null) {
        if(intentAction == null) {
            Log.e(TAG, "intent Action is null");
        } else if ( intentAction.equals(Intent.ACTION_BATTERY_OKAY) ) {
            JobUtils.scheduleScannerJob(context);
            //Note: ScreenOffReciever is register in ScannerJob. So no need to register it here.
        }else if(intentAction.equals(Intent.ACTION_BATTERY_LOW)){
            JobUtils.stopScheduledJob(context, JobUtils.ScannerJobId);
            //JobUtils.stopScheduledJob(context, JobUtils.InitializerJobId);
Compare ef46b208 to c6b717a0
Original line number Diff line number Diff line
Subproject commit ef46b208b9338068039d5be32a71afa845939517
Subproject commit c6b717a01c2f84015357cd9dfa8b48155ff01045