mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +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() {
|
public boolean onCreate() {
|
||||||
//Log.e("TelephonyPlugin", "onCreate");
|
//Log.e("TelephonyPlugin", "onCreate");
|
||||||
IntentFilter filter = new IntentFilter("android.provider.Telephony.SMS_RECEIVED");
|
IntentFilter filter = new IntentFilter("android.provider.Telephony.SMS_RECEIVED");
|
||||||
|
filter.setPriority(500);
|
||||||
filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
|
filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
|
||||||
context.registerReceiver(receiver, filter);
|
context.registerReceiver(receiver, filter);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user