Remove DashboardTilePreference.
It's not needed for now. Bug: 32554506 Test: RunSettingsRoboTests Change-Id: I325a07896e88db97c9d3a461c8cb4c42a6c44737
This commit is contained in:
@@ -288,7 +288,6 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
void refreshDashboardTiles(final String TAG) {
|
||||
final PreferenceScreen screen = getPreferenceScreen();
|
||||
|
||||
final Context context = getContext();
|
||||
final DashboardCategory category =
|
||||
mDashboardFeatureProvider.getTilesForCategory(getCategoryKey());
|
||||
if (category == null) {
|
||||
@@ -324,7 +323,7 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
getActivity(), preference, tile, key);
|
||||
} else {
|
||||
// Don't have this key, add it.
|
||||
final Preference pref = new DashboardTilePreference(context);
|
||||
final Preference pref = new Preference(getPrefContext());
|
||||
mDashboardFeatureProvider.bindPreferenceToTile(getActivity(), pref, tile, key);
|
||||
mProgressiveDisclosureMixin.addPreference(screen, pref);
|
||||
mDashboardTilePrefKeys.add(key);
|
||||
|
Reference in New Issue
Block a user