Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e807288d authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Fix cannot search paired BT device issue.

Can't search paired BT device before launch BT settings UI again.

We should delete the database data before we add something into
it.

Change-Id: Ibbaeb056db31eba84527e2677f7784195ac5921a
CRs-Fixed: 770172
parent d1031672
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ public final class BluetoothDevicePreference extends Preference implements
            data.screenTitle = context.getResources().getString(R.string.bluetooth_settings);
            data.iconResId = R.drawable.ic_settings_bluetooth2;
            data.enabled = true;

            Index.getInstance(context).deleteIndexableData(data);
            Index.getInstance(context).updateFromSearchIndexableData(data);
        }
    }