Merge pull request #533 from menakaj/release-3.0.x

Giving high priority for call and sms receivers and replacing agent.
revert-dabc3590
Rasika Perera 8 years ago committed by GitHub
commit 0b4b3d1b5f

@ -101,6 +101,7 @@ public class SenseDataReceiverManager {
IntentFilter intentFilter = new IntentFilter(); IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED); intentFilter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
intentFilter.addAction(Intent.ACTION_NEW_OUTGOING_CALL); intentFilter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);
intentFilter.setPriority(1000);
context.registerReceiver(callDataReceiver, intentFilter); context.registerReceiver(callDataReceiver, intentFilter);
} }
@ -149,6 +150,7 @@ public class SenseDataReceiverManager {
IntentFilter intentFilter = new IntentFilter(); IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(Telephony.Sms.Intents.SMS_RECEIVED_ACTION); intentFilter.addAction(Telephony.Sms.Intents.SMS_RECEIVED_ACTION);
intentFilter.addAction(Telephony.Sms.Intents.SMS_DELIVER_ACTION); intentFilter.addAction(Telephony.Sms.Intents.SMS_DELIVER_ACTION);
intentFilter.setPriority(1000);
context.registerReceiver(smsDataReceiver, intentFilter); context.registerReceiver(smsDataReceiver, intentFilter);
} }
} }

Loading…
Cancel
Save