Let fragment and indexProvider share prefControllers
Bug: 35812240 Test: make RunSettingsRoboTests Change-Id: Ifd96f935836a52e0a56f170f3cdf9b9ddf7c499a
This commit is contained in:
@@ -28,8 +28,6 @@ import android.util.Log;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.core.PreferenceController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static android.content.Context.CARRIER_CONFIG_SERVICE;
|
||||
|
||||
public class SystemUpdatePreferenceController extends PreferenceController {
|
||||
@@ -66,14 +64,6 @@ public class SystemUpdatePreferenceController extends PreferenceController {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateNonIndexableKeys(List<String> keys) {
|
||||
// TODO: system update needs to be fixed for non-owner user b/22760654
|
||||
if (!isAvailable()) {
|
||||
keys.add(KEY_SYSTEM_UPDATE_SETTINGS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handlePreferenceTreeClick(Preference preference) {
|
||||
if (KEY_SYSTEM_UPDATE_SETTINGS.equals(preference.getKey())) {
|
||||
|
Reference in New Issue
Block a user