diff options
author | ugo_yu <ugo_yu@htc.com> | 2016-05-27 20:11:08 +0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-06-10 16:49:30 -0700 |
commit | 4e5355aa22057c3ab11e191537af6f56c8a3ae58 (patch) | |
tree | 319f83b4908077920e9240dac0be62563dbad3e1 /src/com/android/bluetooth/map/BluetoothMapService.java | |
parent | 33fc9691c430e481d8e6f02f8ffab7b8ae409f68 (diff) | |
download | android_packages_apps_Bluetooth-4e5355aa22057c3ab11e191537af6f56c8a3ae58.tar.gz android_packages_apps_Bluetooth-4e5355aa22057c3ab11e191537af6f56c8a3ae58.tar.bz2 android_packages_apps_Bluetooth-4e5355aa22057c3ab11e191537af6f56c8a3ae58.zip |
Mercedes Benz MAP message listing workaround
Use case:
Sync MAP message to Benz NTG 4.5
Precondition:
1. One of SMS message contains any special characters not ASCII
Steps:
1. Connect with Benz NTG 4.5.
2. Sync SMS message from carkit.
Failure:
Carkit always shows "No Message".
Root Cause:
When this carkit requests the message listing, and any message subject has
non-ASCII special characters in it, the carkit will stop all MAP activity
and stay idle.
Fix:
Strip special characters in the subject tline in message listing
for this carkit.
This change also introduces a Java bases interop database for future
use/expansion.
Bug: 29025011
Change-Id: I4255cbeb068c82f32a68b1022285dfa723e199ec
Diffstat (limited to 'src/com/android/bluetooth/map/BluetoothMapService.java')
-rw-r--r-- | src/com/android/bluetooth/map/BluetoothMapService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapService.java b/src/com/android/bluetooth/map/BluetoothMapService.java index de82c34ab..d088f0edd 100644 --- a/src/com/android/bluetooth/map/BluetoothMapService.java +++ b/src/com/android/bluetooth/map/BluetoothMapService.java @@ -133,7 +133,7 @@ public class BluetoothMapService extends ProfileService { private HashMap<BluetoothMapAccountItem, BluetoothMapMasInstance> mMasInstanceMap = new HashMap<BluetoothMapAccountItem, BluetoothMapMasInstance>(1); - private BluetoothDevice mRemoteDevice = null; // The remote connected device - protect access + private static BluetoothDevice mRemoteDevice = null; // The remote connected device - protect access private ArrayList<BluetoothMapAccountItem> mEnabledAccounts = null; private static String sRemoteDeviceName = null; @@ -476,7 +476,7 @@ public class BluetoothMapService extends ProfileService { protected boolean isMapStarted() { return !mStartError; } - public BluetoothDevice getRemoteDevice() { + public static BluetoothDevice getRemoteDevice() { return mRemoteDevice; } private void setState(int state) { |