Allow partial Index rebuilding thru updateFromClassNameResource(...)

- add a new boolean parameter to ask for Index rebuilding:
passing "true" will delete first all the data corresponding to the
"className" and then apply the update.

Change-Id: Ifc42fc560a14f5470b466cf6982915d9207fa3c7
This commit is contained in:
Fabrice Di Meglio
2014-04-14 13:31:14 -07:00
parent 724b702a86
commit 490099b135
3 changed files with 19 additions and 8 deletions

View File

@@ -166,6 +166,6 @@ public final class BluetoothEnabler implements CompoundButton.OnCheckedChangeLis
private void updateSearchIndex(boolean isBluetoothOn) {
Index.getInstance(mContext).updateFromClassNameResource(
BluetoothSettings.class.getName(), isBluetoothOn);
BluetoothSettings.class.getName(), false, isBluetoothOn);
}
}