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

Commit 8ecff71e authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Remove remaining call of Commonutils.unregisterSceenOff()

- remove call of the method in ResetService.java.onStartCommand()
- remove call of the method in ScannerJob.java.onStopJob()
parent 2b12b82d
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ public class ScannerJob extends JobService {
    @Override
    public boolean onStopJob(JobParameters params) {
        Log.i(TAG, "onStopJob");
        boolean unregisteredReceiver = CommonUtils.unregisterScreenOff(getApplicationContext());
        Intent observerServiceIntent = new Intent(this, ObserverService.class);
        this.stopService(observerServiceIntent);
        return false;
+1 −4
Original line number Diff line number Diff line
@@ -86,11 +86,8 @@ public class ResetService extends Service {
                                .apply();
                    }

                    //5. Unregister screenOffReceiver
                    result = CommonUtils.unregisterScreenOff(getApplicationContext());
                    Log.d(TAG, "Unregistered ScreenOffReceiver: "+result);

                    //6. Remove Cached File
                    //5. Remove Cached File
                    File[] cachedFiles =  this.getApplicationContext().getExternalCacheDir().listFiles();
                    for(File f : cachedFiles){
                        f.delete();