From 801c7cbd45d29c3746eabccd00e6066a42dbc529 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 11 Apr 2015 23:43:00 -0700 Subject: [PATCH] Default priority is not enough to intercept SMS with some apps. Trying raising it to 500 (maximum is 999). BUG: 342215 --- .../kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java index f578caf9..32d1a63a 100644 --- a/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/TelephonyPlugin/TelephonyPlugin.java @@ -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;