Merge "Adds the lightning badge for Instant Apps"

This commit is contained in:
TreeHugger Robot
2017-03-30 00:06:34 +00:00
committed by Android (Google) Code Review
5 changed files with 95 additions and 8 deletions

View File

@@ -212,6 +212,10 @@ public class AppHeaderController {
ImageView iconView = (ImageView) mAppHeader.findViewById(R.id.app_detail_icon);
if (iconView != null) {
iconView.setImageDrawable(mIcon);
ImageView badgeView = mAppHeader.findViewById(R.id.app_icon_instant_apps_badge);
if (badgeView != null) {
badgeView.setVisibility(mIsInstantApp ? View.VISIBLE : View.GONE);
}
}
setText(R.id.app_detail_title, mLabel);
setText(R.id.app_detail_summary, mSummary);