fix a bug where saving a toot with attached media would crash the app
This commit is contained in:
parent
76bf08abea
commit
c3ffed56da
1 changed files with 3 additions and 1 deletions
|
@ -687,7 +687,9 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
||||||
if (!ListUtils.isEmpty(savedList)) {
|
if (!ListUtils.isEmpty(savedList)) {
|
||||||
String json = new Gson().toJson(savedList);
|
String json = new Gson().toJson(savedList);
|
||||||
toot.setUrls(json);
|
toot.setUrls(json);
|
||||||
deleteMedia(setDifference(existingUris, savedList));
|
if(!ListUtils.isEmpty(existingUris)) {
|
||||||
|
deleteMedia(setDifference(existingUris, savedList));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue