Merge "Show only 1 entry for hearing aid devices without killing the activity." into pi-dev am: d87acaf3cf
am: 595cda2d14
Change-Id: I49973a65a31f5f79722c4e4841f2dcda34128edb
This commit is contained in:
@@ -85,6 +85,8 @@ public class EntityHeaderController {
|
||||
private String mIconContentDescription;
|
||||
private CharSequence mLabel;
|
||||
private CharSequence mSummary;
|
||||
// Required for hearing aid devices.
|
||||
private CharSequence mSecondSummary;
|
||||
private String mPackageName;
|
||||
private Intent mAppNotifPrefIntent;
|
||||
@UserIdInt
|
||||
@@ -181,6 +183,18 @@ public class EntityHeaderController {
|
||||
return this;
|
||||
}
|
||||
|
||||
public EntityHeaderController setSecondSummary(CharSequence summary) {
|
||||
mSecondSummary = summary;
|
||||
return this;
|
||||
}
|
||||
|
||||
public EntityHeaderController setSecondSummary(PackageInfo packageInfo) {
|
||||
if (packageInfo != null) {
|
||||
mSummary = packageInfo.versionName;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public EntityHeaderController setHasAppInfoLink(boolean hasAppInfoLink) {
|
||||
mHasAppInfoLink = hasAppInfoLink;
|
||||
return this;
|
||||
@@ -242,6 +256,7 @@ public class EntityHeaderController {
|
||||
}
|
||||
setText(R.id.entity_header_title, mLabel);
|
||||
setText(R.id.entity_header_summary, mSummary);
|
||||
setText(R.id.entity_header_second_summary, mSecondSummary);
|
||||
if (mIsInstantApp) {
|
||||
setText(R.id.install_type,
|
||||
mHeader.getResources().getString(R.string.install_type_instant));
|
||||
|
Reference in New Issue
Block a user