2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

Default priority is not enough to intercept SMS with some apps.

Trying raising it to 500 (maximum is 999).

BUG: 342215
This commit is contained in:
Albert Vaca 2015-04-11 23:43:00 -07:00
parent 366aaea282
commit 801c7cbd45

View File

@ -207,6 +207,7 @@ public class TelephonyPlugin extends Plugin {
public boolean onCreate() {
//Log.e("TelephonyPlugin", "onCreate");
IntentFilter filter = new IntentFilter("android.provider.Telephony.SMS_RECEIVED");
filter.setPriority(500);
filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
context.registerReceiver(receiver, filter);
return true;