Fix crash when cleared ShareViewModel.
This commit is contained in:
parent
16ebf0556a
commit
9fbc50d26f
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class ShareViewModel extends ViewModel {
|
|||
protected void onCleared() {
|
||||
ShareData data = shareData.getValue() != null ? shareData.getValue().orNull() : null;
|
||||
|
||||
if (data != null && data.isExternal() && !mediaUsed) {
|
||||
if (data != null && data.isExternal() && data.isForIntent() && !mediaUsed) {
|
||||
Log.i(TAG, "Clearing out unused data.");
|
||||
BlobProvider.getInstance().delete(context, data.getUri());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue