mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
Fix Edit Issue & Instant Add Issue
Previously editing would add an additional signature, this fixes that. It would also add an additional signature to the preview ( This didn't affect the comment, but it would display it twice when posted ).
This commit is contained in:
parent
0a0fc45f15
commit
df041e2ae3
@ -167,8 +167,7 @@ public class EditorActivity extends BaseActivity<EditorMvp.View, EditorPresenter
|
||||
|
||||
@Override public void onSendMarkDownResult() {
|
||||
Intent intent = new Intent();
|
||||
intent.putExtras(Bundler.start().put(BundleConstant.EXTRA, savedText +
|
||||
(sentVia.isChecked() ? "\n\n_"+sentVia.getText().toString()+"_" : "")).end());
|
||||
intent.putExtras(Bundler.start().put(BundleConstant.EXTRA, savedText).end());
|
||||
setResult(RESULT_OK, intent);
|
||||
finish();
|
||||
}
|
||||
@ -182,7 +181,10 @@ public class EditorActivity extends BaseActivity<EditorMvp.View, EditorPresenter
|
||||
if (item.getItemId() == R.id.submit) {
|
||||
item.setEnabled(false);
|
||||
getPresenter().onHandleSubmission(savedText +
|
||||
(sentVia.isChecked() ? "\n\n_" + sentVia.getText() + "_" : ""),
|
||||
(
|
||||
savedText.toString().contains(sentVia.getText()) ? "" :
|
||||
sentVia.isChecked() ? "\n\n_" + sentVia.getText() + "_" : ""
|
||||
),
|
||||
extraType, itemId, commentId, login, issueNumber, sha);
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user