Merge pull request #1362 from nextcloud/handleForeignBroadcast

Handle foreign broadcast
This commit is contained in:
Tobias Kaminsky 2017-08-18 09:22:52 +02:00 committed by GitHub
commit 85a355ed07

View file

@ -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
}
} }
} }
} }