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:
parent
366aaea282
commit
801c7cbd45
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user