mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Fix 2041
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
af0a31d957
commit
098c4aacbf
1 changed files with 6 additions and 1 deletions
|
@ -300,7 +300,12 @@ public class SynchronizeFileOperation extends SyncOperation {
|
|||
Intent i = new Intent(mContext, FileDownloader.class);
|
||||
i.putExtra(FileDownloader.EXTRA_ACCOUNT, mAccount);
|
||||
i.putExtra(FileDownloader.EXTRA_FILE, file);
|
||||
mContext.startService(i);
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||
mContext.startForegroundService(i);
|
||||
} else {
|
||||
mContext.startService(i);
|
||||
}
|
||||
|
||||
mTransferWasRequested = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue