Loading app/src/main/java/foundation/e/drive/receivers/BatteryStateReceiver.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); Loading nextcloud-android-lib @ c6b717a0 Compare ef46b208 to c6b717a0 Original line number Diff line number Diff line Subproject commit ef46b208b9338068039d5be32a71afa845939517 Subproject commit c6b717a01c2f84015357cd9dfa8b48155ff01045 Loading
app/src/main/java/foundation/e/drive/receivers/BatteryStateReceiver.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); Loading
nextcloud-android-lib @ c6b717a0 Compare ef46b208 to c6b717a0 Original line number Diff line number Diff line Subproject commit ef46b208b9338068039d5be32a71afa845939517 Subproject commit c6b717a01c2f84015357cd9dfa8b48155ff01045