mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Enforce requirements
This commit is contained in:
parent
38234af681
commit
ab266f35c5
3 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,7 @@ public class AutoUploadJob extends Job {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return Result.SUCCESS;
|
return Result.SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,6 +131,7 @@ public class FileAlterationMagicListener implements FileAlterationListener {
|
||||||
JobRequest.NetworkType.ANY)
|
JobRequest.NetworkType.ANY)
|
||||||
.setExtras(bundle)
|
.setExtras(bundle)
|
||||||
.setPersisted(true)
|
.setPersisted(true)
|
||||||
|
.setRequirementsEnforced(true)
|
||||||
.build()
|
.build()
|
||||||
.schedule();
|
.schedule();
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class SyncedFolderObserverService extends Service {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
for(FileAlterationObserver fileAlterationObserver : monitor.getObservers()) {
|
for(FileAlterationObserver fileAlterationObserver : monitor.getObservers()) {
|
||||||
FileAlterationMagicObserver fileAlterationMagicObserver = (FileAlterationMagicObserver)
|
FileAlterationMagicObserver fileAlterationMagicObserver = (FileAlterationMagicObserver)
|
||||||
|
|
Loading…
Reference in a new issue