Loading app/src/main/java/io/eelo/drive/receivers/BatteryStateReceiver.java +2 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,8 @@ public class BatteryStateReceiver extends BroadcastReceiver { } else if ( intentAction.equals(Intent.ACTION_BATTERY_OKAY) ) { JobUtils.scheduleScannerJob(context, 180000); }else if(intentAction.equals(Intent.ACTION_BATTERY_LOW)){ JobUtils.stopScheduledJob(context); JobUtils.stopScheduledJob(context, JobUtils.ScannerJobId); //JobUtils.stopScheduledJob(context, JobUtils.InitializerJobId); try { context.unregisterReceiver(ScreenOffReceiver.getInstance()); }catch(Exception e){ Loading Loading
app/src/main/java/io/eelo/drive/receivers/BatteryStateReceiver.java +2 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,8 @@ public class BatteryStateReceiver extends BroadcastReceiver { } else if ( intentAction.equals(Intent.ACTION_BATTERY_OKAY) ) { JobUtils.scheduleScannerJob(context, 180000); }else if(intentAction.equals(Intent.ACTION_BATTERY_LOW)){ JobUtils.stopScheduledJob(context); JobUtils.stopScheduledJob(context, JobUtils.ScannerJobId); //JobUtils.stopScheduledJob(context, JobUtils.InitializerJobId); try { context.unregisterReceiver(ScreenOffReceiver.getInstance()); }catch(Exception e){ Loading