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

main
Vavassor 7 years ago
parent b6291b8004
commit 0c962144c5
  1. 3
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

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

Loading…
Cancel
Save