Merge "Adds the lightning badge for Instant Apps" into oc-dev

am: ef64404f44

Change-Id: Iaae54c4ccf9656b14e7bbaa24a8979eadfbc2e5d
This commit is contained in:
Jesse Evans
2017-04-01 05:05:55 +00:00
committed by android-build-merger
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);