Loading android/app/src/com/android/bluetooth/map/BluetoothMapContentObserver.java +3 −2 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ import android.telephony.SmsMessage; import android.telephony.TelephonyManager; import android.util.Log; import android.util.Xml; import android.os.Looper; import com.android.bluetooth.map.BluetoothMapUtils.TYPE; import com.android.bluetooth.map.BluetoothMapbMessageMmsEmail.MimePart; Loading Loading @@ -128,7 +129,7 @@ public class BluetoothMapContentObserver { return smsType; } private final ContentObserver mObserver = new ContentObserver(new Handler()) { private final ContentObserver mObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { @Override public void onChange(boolean selfChange) { onChange(selfChange, null); Loading Loading @@ -965,7 +966,7 @@ public class BluetoothMapContentObserver { private final Uri UPDATE_STATUS_URI = Uri.parse("content://sms/status"); public void register() { Handler handler = new Handler(); Handler handler = new Handler(Looper.getMainLooper()); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(ACTION_MESSAGE_DELIVERY); Loading Loading
android/app/src/com/android/bluetooth/map/BluetoothMapContentObserver.java +3 −2 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ import android.telephony.SmsMessage; import android.telephony.TelephonyManager; import android.util.Log; import android.util.Xml; import android.os.Looper; import com.android.bluetooth.map.BluetoothMapUtils.TYPE; import com.android.bluetooth.map.BluetoothMapbMessageMmsEmail.MimePart; Loading Loading @@ -128,7 +129,7 @@ public class BluetoothMapContentObserver { return smsType; } private final ContentObserver mObserver = new ContentObserver(new Handler()) { private final ContentObserver mObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { @Override public void onChange(boolean selfChange) { onChange(selfChange, null); Loading Loading @@ -965,7 +966,7 @@ public class BluetoothMapContentObserver { private final Uri UPDATE_STATUS_URI = Uri.parse("content://sms/status"); public void register() { Handler handler = new Handler(); Handler handler = new Handler(Looper.getMainLooper()); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(ACTION_MESSAGE_DELIVERY); Loading