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:
@@ -20,12 +20,10 @@ import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.database.ContentObserver;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.wifi.SupplicantState;
|
||||
import android.net.wifi.WifiInfo;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.Switch;
|
||||
@@ -157,7 +155,7 @@ public class WifiEnabler implements CompoundButton.OnCheckedChangeListener {
|
||||
|
||||
private void updateSearchIndex(boolean isWiFiOn) {
|
||||
Index.getInstance(mContext).updateFromClassNameResource(
|
||||
WifiSettings.class.getName(), isWiFiOn);
|
||||
WifiSettings.class.getName(), false, isWiFiOn);
|
||||
}
|
||||
|
||||
private void setSwitchChecked(boolean checked) {
|
||||
|
Reference in New Issue
Block a user