mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user