App header cleanup
- Refactor the entity header layout to use LinearLayout and add id to content area - Remove now unused AppHeader class - Make entire icon+text area clickable and link to app info page Refactor the binding logic from bindButton to its own method. - Remove unused MultiLinePreference Fix: 62705377 Test: make RunSettingsRoboTests Change-Id: I6db554695410e71b669f6fdba29d98fedc3364b9
This commit is contained in:
@@ -338,9 +338,8 @@ public class AppDataUsage extends DataUsageBase implements Preference.OnPreferen
|
||||
.newInstance(activity, this, null /* header */)
|
||||
.setRecyclerView(getListView(), getLifecycle())
|
||||
.setUid(uid)
|
||||
.setButtonActions(showInfoButton
|
||||
? EntityHeaderController.ActionType.ACTION_APP_INFO
|
||||
: EntityHeaderController.ActionType.ACTION_NONE,
|
||||
.setHasAppInfoLink(showInfoButton)
|
||||
.setButtonActions(EntityHeaderController.ActionType.ACTION_NONE,
|
||||
EntityHeaderController.ActionType.ACTION_NONE)
|
||||
.setIcon(mIcon)
|
||||
.setLabel(mLabel)
|
||||
|
Reference in New Issue
Block a user