Skip to content

Commit

Permalink
Use new permission and action for "instant text response"
Browse files Browse the repository at this point in the history
This must be after Ib611368d488de2f8e1e853f550eb2c654305eda4

Bug: 5108429
Change-Id: Idda4130f7f20b7cf0fba66900209d36f12dc093f
  • Loading branch information
Daisuke Miyakawa authored and Android (Google) Code Review committed Feb 4, 2013
1 parent f90aa95 commit 24f5e46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@
</provider>

<service android:name=".ui.NoConfirmationSendService"
android:permission="android.permission.SEND_SMS_NO_CONFIRMATION"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
android:exported="true" >
<intent-filter>
<action android:name="com.android.mms.intent.action.SENDTO_NO_CONFIRMATION" />
<action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
Expand Down
5 changes: 2 additions & 3 deletions src/com/android/mms/ui/NoConfirmationSendService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;

Expand All @@ -38,16 +39,14 @@ public NoConfirmationSendService() {
setIntentRedelivery(true);
}

public static final String SEND_NO_CONFIRM_INTENT_ACTION =
"com.android.mms.intent.action.SENDTO_NO_CONFIRMATION";
private static final String TAG = "Mms/NoConfirmationSendService";

@Override
protected void onHandleIntent(Intent intent) {
ComposeMessageActivity.log("NoConfirmationSendService onHandleIntent");

String action = intent.getAction();
if (!SEND_NO_CONFIRM_INTENT_ACTION.equals(action)) {
if (!TelephonyManager.ACTION_RESPOND_VIA_MESSAGE.equals(action)) {
ComposeMessageActivity.log("NoConfirmationSendService onHandleIntent wrong action: " +
action);
return;
Expand Down

0 comments on commit 24f5e46

Please sign in to comment.