mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 06:08:52 +01:00
Merge pull request #622 from frogoscar/enmingxie/Fix_Cannot_attach_MMS_from_Compose
Enmingxie/fix cannot attach mms from compose
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.moez.QKSMS.ui.compose;
|
package com.moez.QKSMS.ui.compose;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@@ -88,6 +89,16 @@ public class ComposeFragment extends QKFragment implements ActivityLauncher, Rec
|
|||||||
return addresses;
|
return addresses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Photo Selection result
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void onActivityResult(int requestCode, int resultCode, final Intent data) {
|
||||||
|
if (!mComposeView.onActivityResult(requestCode, resultCode, data)) {
|
||||||
|
// Wasn't handled by ComposeView
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
mRecipients.onItemClick(parent, view, position, id);
|
mRecipients.onItemClick(parent, view, position, id);
|
||||||
|
|||||||
@@ -426,7 +426,6 @@ public class ComposeView extends LinearLayout implements View.OnClickListener {
|
|||||||
} else {
|
} else {
|
||||||
attachment = null;
|
attachment = null;
|
||||||
}
|
}
|
||||||
clearAttachment();
|
|
||||||
|
|
||||||
String[] recipients = null;
|
String[] recipients = null;
|
||||||
if (mConversation != null) {
|
if (mConversation != null) {
|
||||||
@@ -440,6 +439,8 @@ public class ComposeView extends LinearLayout implements View.OnClickListener {
|
|||||||
|
|
||||||
// If we have some recipients, send the message!
|
// If we have some recipients, send the message!
|
||||||
if (recipients != null && recipients.length > 0) {
|
if (recipients != null && recipients.length > 0) {
|
||||||
|
clearAttachment();
|
||||||
|
|
||||||
mReplyText.setText("");
|
mReplyText.setText("");
|
||||||
|
|
||||||
AnalyticsManager.getInstance().sendEvent(
|
AnalyticsManager.getInstance().sendEvent(
|
||||||
|
|||||||
Reference in New Issue
Block a user