mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-21 05:08:52 +01:00
Close compose screen after sending message
This commit is contained in:
@@ -59,6 +59,7 @@ public class ComposeFragment extends QKFragment implements ActivityLauncher, Rec
|
|||||||
public void onSend(String[] recipients, String body) {
|
public void onSend(String[] recipients, String body) {
|
||||||
long threadId = Utils.getOrCreateThreadId(mContext, recipients[0]);
|
long threadId = Utils.getOrCreateThreadId(mContext, recipients[0]);
|
||||||
if (threadId != 0) {
|
if (threadId != 0) {
|
||||||
|
mContext.finish();
|
||||||
MessageListActivity.launch(mContext, threadId, -1, null, true);
|
MessageListActivity.launch(mContext, threadId, -1, null, true);
|
||||||
} else {
|
} else {
|
||||||
mContext.onBackPressed();
|
mContext.onBackPressed();
|
||||||
|
|||||||
Reference in New Issue
Block a user