summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-04-11 14:00:56 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-04-11 14:03:28 -0700
commitfa46de5c68f078a595aa61d61ceae6b7951c3aa7 (patch)
treeae39609ecb3a3d4f27f48af8fe26560cbff6e200 /src/com/android/settings/bluetooth
parente241ad1867741f50db6ec91f59b70a7fb4c33fe7 (diff)
downloadpackages_apps_Settings-fa46de5c68f078a595aa61d61ceae6b7951c3aa7.tar.gz
packages_apps_Settings-fa46de5c68f078a595aa61d61ceae6b7951c3aa7.tar.bz2
packages_apps_Settings-fa46de5c68f078a595aa61d61ceae6b7951c3aa7.zip
Search - fix remembered Bluetooth devices indexing
We were indexing the remembered device names but we were missing the informations for launching the correct Activity from the Search result. - add the missing information: className and iconResId Change-Id: Ib6781d4c492c296e822da1b5a8a2a76c92ecd586
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothDevicePreference.java2
-rwxr-xr-xsrc/com/android/settings/bluetooth/DeviceProfilesSettings.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
index 12d25e5ad..e336ae435 100644
--- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
+++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java
@@ -215,8 +215,10 @@ public final class BluetoothDevicePreference extends Preference implements
final Context context = getContext();
SearchIndexableRaw data = new SearchIndexableRaw(context);
+ data.className = BluetoothSettings.class.getName();
data.title = mCachedDevice.getName();
data.screenTitle = context.getResources().getString(R.string.bluetooth_settings);
+ data.iconResId = R.drawable.ic_settings_bluetooth2;
data.enabled = true;
Index.getInstance(context).updateFromSearchIndexableData(data);
diff --git a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
index 821013d89..b50d2b4e1 100755
--- a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
+++ b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
@@ -235,8 +235,10 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
final Context context = preference.getContext();
SearchIndexableRaw data = new SearchIndexableRaw(context);
+ data.className = BluetoothSettings.class.getName();
data.title = mCachedDevice.getName();
data.screenTitle = context.getResources().getString(R.string.bluetooth_settings);
+ data.iconResId = R.drawable.ic_settings_bluetooth2;
data.enabled = false;
Index.getInstance(context).updateFromSearchIndexableData(data);