mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Merge pull request #1362 from nextcloud/handleForeignBroadcast
Handle foreign broadcast
This commit is contained in:
commit
85a355ed07
1 changed files with 6 additions and 1 deletions
|
@ -1282,7 +1282,12 @@ public class FileDisplayActivity extends HookActivity
|
||||||
// avoid app crashes after changing the serial id of RemoteOperationResult
|
// avoid app crashes after changing the serial id of RemoteOperationResult
|
||||||
// in owncloud library with broadcast notifications pending to process
|
// in owncloud library with broadcast notifications pending to process
|
||||||
removeStickyBroadcast(intent);
|
removeStickyBroadcast(intent);
|
||||||
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|
|
||||||
|
try {
|
||||||
|
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|
||||||
|
} catch (RuntimeException re) {
|
||||||
|
// we did not send this intent, so ignoring
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue