mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Minor spelling correction.
This commit is contained in:
parent
bb3777aa68
commit
58961fe0a8
@ -66,13 +66,13 @@ public class SmsListener extends BroadcastReceiver {
|
|||||||
if (pdus == null)
|
if (pdus == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
for (int i=0;i<pdus.length;i++)
|
for (Object pdu : pdus)
|
||||||
bodyBuilder.append(SmsMessage.createFromPdu((byte[])pdus[i]).getDisplayMessageBody());
|
bodyBuilder.append(SmsMessage.createFromPdu((byte[])pdu).getDisplayMessageBody());
|
||||||
|
|
||||||
return bodyBuilder.toString();
|
return bodyBuilder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isRelevent(Context context, Intent intent) {
|
private boolean isRelevant(Context context, Intent intent) {
|
||||||
SmsMessage message = getSmsMessageFromIntent(intent);
|
SmsMessage message = getSmsMessageFromIntent(intent);
|
||||||
String messageBody = getSmsMessageBodyFromIntent(intent);
|
String messageBody = getSmsMessageBodyFromIntent(intent);
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ public class SmsListener extends BroadcastReceiver {
|
|||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
Log.w("SMSListener", "Got SMS broadcast...");
|
Log.w("SMSListener", "Got SMS broadcast...");
|
||||||
|
|
||||||
if (intent.getAction().equals(SMS_RECEIVED_ACTION) && isRelevent(context, intent)) {
|
if (intent.getAction().equals(SMS_RECEIVED_ACTION) && isRelevant(context, intent)) {
|
||||||
intent.setAction(SendReceiveService.RECEIVE_SMS_ACTION);
|
intent.setAction(SendReceiveService.RECEIVE_SMS_ACTION);
|
||||||
intent.putExtra("ResultCode", this.getResultCode());
|
intent.putExtra("ResultCode", this.getResultCode());
|
||||||
intent.setClass(context, SendReceiveService.class);
|
intent.setClass(context, SendReceiveService.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user