Fixes URLs being deleted erroneously when multiple images are added in the composer.

This commit is contained in:
Vavassor 2017-07-30 17:16:32 -04:00
parent 4f96d850cc
commit 6b3dd30527
1 changed files with 1 additions and 2 deletions

View File

@ -474,7 +474,6 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
for (QueuedMedia item : mediaQueued) {
savedMediaQueued.add(new SavedQueuedMedia(item.type, item.uri, item.preview,
item.mediaSize));
removeUrlFromEditable(textEditor.getEditableText(), item.uploadUrl);
}
outState.putParcelableArrayList("savedMediaQueued", savedMediaQueued);
outState.putBoolean("showMarkSensitive", showMarkSensitive);
@ -493,7 +492,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
}
private void doErrorDialog(@StringRes int descriptionId, @StringRes int actionId,
View.OnClickListener listener) {
View.OnClickListener listener) {
Snackbar bar = Snackbar.make(findViewById(R.id.activity_compose), getString(descriptionId),
Snackbar.LENGTH_SHORT);
bar.setAction(actionId, listener);