Remove getCategoryKey() from DashboardFragment children.

Use the centralized registry to look up category key instead.

Bug: 32936784
Test: make RunSettingsRoboTests -j40
Change-Id: I0b8c72d70f93e4b5c58871ac90de41f69ad15653
This commit is contained in:
Fan Zhang
2017-01-24 14:02:17 -08:00
parent 88c0364ace
commit 7e6df837ee
32 changed files with 34 additions and 172 deletions

View File

@@ -34,7 +34,6 @@ import com.android.settings.gestures.PickupGesturePreferenceController;
import com.android.settings.gestures.SwipeToNotificationPreferenceController;
import com.android.settings.overlay.FeatureFactory;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settingslib.drawer.CategoryKey;
import java.util.ArrayList;
import java.util.Arrays;
@@ -51,11 +50,6 @@ public class InputAndGestureSettings extends DashboardFragment {
return MetricsProto.MetricsEvent.SETTINGS_INPUT_CATEGORY;
}
@Override
protected String getCategoryKey() {
return CategoryKey.CATEGORY_SYSTEM_INPUT;
}
@Override
protected String getLogTag() {
return TAG;

View File

@@ -38,7 +38,6 @@ import com.android.settings.overlay.FeatureFactory;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settings.search.Indexable;
import com.android.settings.search.SearchIndexableRaw;
import com.android.settingslib.drawer.CategoryKey;
import java.util.ArrayList;
import java.util.List;
@@ -60,11 +59,6 @@ public class InputMethodAndLanguageSettings extends DashboardFragment
return MetricsEvent.INPUTMETHOD_LANGUAGE;
}
@Override
protected String getCategoryKey() {
return CategoryKey.CATEGORY_SYSTEM_LANGUAGE;
}
@Override
protected String getLogTag() {
return TAG;