public final void bindView(View paramView) { Document localDocument = ((Data) this.mModuleData).dfeList.mContainerDocument; if (!TextUtils.isEmpty(((Data) this.mModuleData).sectionMetadata.header)) {} for (String str1 = ((Data) this.mModuleData).sectionMetadata.header; (paramView instanceof CardClusterModuleLayout); str1 = localDocument.mDocument.title) { CardClusterModuleLayout localCardClusterModuleLayout = (CardClusterModuleLayout) paramView; String str3 = UiUtils.getMoreResultsStringForCluster( this.mContext, localDocument, localCardClusterModuleLayout.getMaxItemsInLayout(false), this, ((Data) this.mModuleData).sectionMetadata.browseUrl, true); int k = ((Data) this.mModuleData).dfeList.getBackendId(); boolean bool = ((Data) this.mModuleData).supportsTwoRows; localCardClusterModuleLayout.bind(this, k, str1, null, str3, bool, this); return; } CardClusterModuleLayoutV2 localCardClusterModuleLayoutV2 = (CardClusterModuleLayoutV2) paramView; int i = ((Data) this.mModuleData).dfeList.getBackendId(); String str2 = UiUtils.getMoreResultsStringForCluster( this.mContext, localDocument, localCardClusterModuleLayoutV2.getMaxItemsPerPage(), this, ((Data) this.mModuleData).sectionMetadata.browseUrl, true); int j = ((Data) this.mModuleData).cardLayoutResId; ClusterContentConfiguratorRepository localClusterContentConfiguratorRepository = this.mClusterConfiguratorRepository; RecyclerView.RecycledViewPool localRecycledViewPool = this.mRecycledViewPool; Bundle localBundle = ((Data) this.mModuleData).clusterState; PlayStoreUiElementNode localPlayStoreUiElementNode = getParentNode(); byte[] arrayOfByte = localDocument.mDocument.serverLogsCookie; localCardClusterModuleLayoutV2.bind( i, str1, str2, this, j, this, localClusterContentConfiguratorRepository, localRecycledViewPool, localBundle, localPlayStoreUiElementNode, arrayOfByte); }
public void onStart() { super.onStart(); if (getContinueButtonLabel(getResources()) == null) { UiUtils.sendAccessibilityEventWithText( getActivity(), Html.fromHtml(this.mSuccessInfo.messageHtml).toString(), getView()); this.mHandler.postDelayed( this.mFinishRunnable, ((Long) G.lightPurchaseAutoDismissMs.get()).longValue()); } }
public final void configureMerch(BitmapLoader paramBitmapLoader, int paramInt, Common.Image paramImage, String paramString, View.OnClickListener paramOnClickListener) { int i = 1; PlayCardMerchClusterViewContent localPlayCardMerchClusterViewContent = (PlayCardMerchClusterViewContent)this.mContent; ViewGroup.MarginLayoutParams localMarginLayoutParams = (ViewGroup.MarginLayoutParams)localPlayCardMerchClusterViewContent.getLayoutParams(); localMarginLayoutParams.topMargin = this.mContentVerticalMargin; localMarginLayoutParams.bottomMargin = this.mContentVerticalMargin; localPlayCardMerchClusterViewContent.setCardContentVerticalPadding(this.mContentVerticalPadding); if ((paramInt != 0) && (paramInt != i)) { throw new IllegalArgumentException("Merch image position " + paramInt + " is not supported"); } localPlayCardMerchClusterViewContent.mMerchColor = UiUtils.getFillColor(paramImage, localPlayCardMerchClusterViewContent.mFallbackMerchColor); localPlayCardMerchClusterViewContent.mMerchImagePosition = paramInt; localPlayCardMerchClusterViewContent.mMerchImage.setOnLoadedListener(localPlayCardMerchClusterViewContent); localPlayCardMerchClusterViewContent.mMerchImage.setImage(paramImage.imageUrl, paramImage.supportsFifeUrlOptions, paramBitmapLoader); label173: FadingEdgeImageView localFadingEdgeImageView2; if (localPlayCardMerchClusterViewContent.mMerchImage.getDrawable() != null) { localPlayCardMerchClusterViewContent.configureImageFadingEdge(); localPlayCardMerchClusterViewContent.mMerchImage.setOnClickListener(paramOnClickListener); FadingEdgeImageView localFadingEdgeImageView1 = localPlayCardMerchClusterViewContent.mMerchImage; if (paramOnClickListener == null) { break label221; } localFadingEdgeImageView1.setClickable(i); localFadingEdgeImageView2 = localPlayCardMerchClusterViewContent.mMerchImage; if (paramOnClickListener == null) { break label227; } } for (;;) { localFadingEdgeImageView2.setContentDescription(paramString); localPlayCardMerchClusterViewContent.setBackgroundColor(localPlayCardMerchClusterViewContent.mMerchColor); return; localPlayCardMerchClusterViewContent.mMerchImage.clearFadingEdges(); break; label221: i = 0; break label173; label227: paramString = null; } }
protected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3, int paramInt4) { boolean bool; int i; int k; int n; int i16; label100: int i3; int i4; int i5; label171: int i7; int i8; int i9; if (ViewCompat.getLayoutDirection(this) == 0) { bool = true; i = getWidth(); int j = ViewCompat.getPaddingStart(this); k = ViewCompat.getPaddingEnd(this); int m = getHeight(); n = getPaddingTop(); int i1 = getPaddingBottom(); int i2 = m - n - i1; if (isLogoVisible()) { int i14 = this.mLogo.getMeasuredWidth(); int i15 = this.mLogo.getMeasuredHeight(); if (this.mContentFormat != 0) { break label352; } i16 = n + (i2 - i15) / 2; int i17 = PlayUtils.getViewLeftFromParentStart(i, i14, bool, j); this.mLogo.layout(i17, i16, i17 + i14, i16 + i15); } i3 = this.mContinueButtonFrame.getMeasuredWidth(); i4 = this.mContinueButtonFrame.getMeasuredHeight(); if (this.mContentFormat != 0) { break label359; } i5 = n + (i2 - i4) / 2; int i6 = PlayUtils.getViewLeftFromParentEnd(i, i3, bool, k); this.mContinueButtonFrame.layout(i6, i5, i6 + i3, i5 + i4); if (isSecondaryButtonVisible()) { i7 = this.mSecondaryButtonFrame.getMeasuredWidth(); i8 = this.mSecondaryButtonFrame.getMeasuredHeight(); if (this.mContentFormat != 0) { break label394; } i9 = n + (i2 - i8) / 2; } } for (int i10 = i3 + (i7 + this.mHorizontalItemGap);; i10 = i7) { int i11 = PlayUtils.getViewLeftFromParentEnd(i, i10, bool, k); View localView = this.mSecondaryButtonFrame; int i12 = i11 + i7; int i13 = i9 + i8; localView.layout(i11, i9, i12, i13); UiUtils.ensureMinimumTouchTargetSize(this.mContinueButton, this.mContinueArea, this.mOldContinueArea, this.mMinimumTouchTargetSize); UiUtils.ensureMinimumTouchTargetSize(this.mSecondaryButton, this.mSecondaryArea, this.mOldSecondaryArea, this.mMinimumTouchTargetSize); return; bool = false; break; label352: i16 = n; break label100; label359: if (this.mContentFormat == 1) { i5 = n + this.mLogo.getMeasuredHeight() + this.mVerticalItemGap; break label171; } i5 = n; break label171; label394: i9 = i5 + i4 + this.mVerticalItemGap; } }