mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
parent
cf891edce9
commit
d2eebbc55a
@ -45,6 +45,8 @@ public class SmsReceiveJob extends ContextJob {
|
||||
|
||||
@Override
|
||||
public void onRun() {
|
||||
Log.w(TAG, "onRun()");
|
||||
|
||||
Optional<IncomingTextMessage> message = assembleMessageFragments(pdus, subscriptionId);
|
||||
MasterSecret masterSecret = KeyCachingService.getMasterSecret(context);
|
||||
|
||||
@ -64,6 +66,8 @@ public class SmsReceiveJob extends ContextJob {
|
||||
}
|
||||
} else if (message.isPresent()) {
|
||||
Log.w(TAG, "*** Received blocked SMS, ignoring...");
|
||||
} else {
|
||||
Log.w(TAG, "*** Failed to assemble message fragments!");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,7 @@ public class SmsListener extends BroadcastReceiver {
|
||||
} else if ((intent.getAction().equals(SMS_DELIVERED_ACTION)) ||
|
||||
(intent.getAction().equals(SMS_RECEIVED_ACTION)) && isRelevant(context, intent))
|
||||
{
|
||||
Log.w("SmsListener", "Constructing SmsReceiveJob...");
|
||||
Object[] pdus = (Object[]) intent.getExtras().get("pdus");
|
||||
int subscriptionId = intent.getExtras().getInt("subscription", -1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user