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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user