Clean up unused fields from EntityHeaderController
Bug: 295260929 Test: manual - on pages with header Test: robo test Change-Id: Icebd63dbb5d3d44b4b46d3bececb8b65b30b4883
This commit is contained in:
@@ -200,7 +200,6 @@ public class AppLaunchSettings extends AppInfoBase implements
|
||||
final String summary = activity.getString(R.string.app_launch_top_intro_message);
|
||||
final Preference pref = EntityHeaderController
|
||||
.newInstance(activity, this, null /* header */)
|
||||
.setRecyclerView(getListView(), getSettingsLifecycle())
|
||||
.setIcon(Utils.getBadgedIcon(mContext, mPackageInfo.applicationInfo))
|
||||
.setLabel(mPackageInfo.applicationInfo.loadLabel(mPm))
|
||||
.setSummary(summary) // add intro text
|
||||
@@ -210,7 +209,7 @@ public class AppLaunchSettings extends AppInfoBase implements
|
||||
.setHasAppInfoLink(true)
|
||||
.setButtonActions(EntityHeaderController.ActionType.ACTION_NONE,
|
||||
EntityHeaderController.ActionType.ACTION_NONE)
|
||||
.done(activity, getPrefContext());
|
||||
.done(getPrefContext());
|
||||
getPreferenceScreen().addPreference(pref);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user