Пример #1
0
 public void bind(
     DfeApi dfeApi,
     DfeToc toc,
     String title,
     DfeList dfeList,
     BitmapLoader bitmapLoader,
     OnRefundActionListener onRefundActionListener,
     NavigationManager navManager,
     PlayStoreUiElementNode parentNode) {
   this.mTitleView.setText(title);
   this.mDfeApi = dfeApi;
   this.mToc = toc;
   this.mDfeList = dfeList;
   this.mNavigationManager = navManager;
   this.mParentNode = parentNode;
   this.mEventLogger = FinskyApp.get().getEventLogger(this.mDfeApi.getAccount());
   if (this.mDfeList == null || !this.mDfeList.isReady()) {
     this.mProgressIndicator.setVisibility(0);
     this.mOrderHistoryHolder.setVisibility(8);
     this.mMoreFooter.setVisibility(8);
     return;
   }
   this.mAdapter =
       new OrderHistoryAdapter(
           getContext(),
           this.mDfeList,
           bitmapLoader,
           this.mNavigationManager,
           onRefundActionListener,
           false,
           this);
   this.mProgressIndicator.setVisibility(8);
   this.mOrderHistoryHolder.setVisibility(0);
   Document containerDocument = this.mDfeList.getContainerDocument();
   if (containerDocument != null) {
     FinskyEventLog.setServerLogCookie(
         this.mUiElementProto, containerDocument.getServerLogsCookie());
   }
   getParentNode().childImpression(this);
   renderOrderHistoryList();
 }
Пример #2
0
 public final void showPreregistrationReleasedMessage(Document paramDocument, String paramString, Bitmap paramBitmap)
 {
   String str1 = paramDocument.mDocument.docid;
   if (paramDocument.getAppDetails() == null)
   {
     FinskyLog.wtf("appDocument doesn't have app details (%s)", new Object[] { str1 });
     return;
   }
   logNotificationImpression(905, paramDocument);
   Intent localIntent1 = NotificationReceiver.getPreregistrationReleasedClickedIntent(str1, paramString);
   Intent localIntent2 = NotificationReceiver.getPreregistrationReleasedDeleteIntent(str1);
   Resources localResources = this.mContext.getResources();
   Object[] arrayOfObject = new Object[1];
   arrayOfObject[0] = paramDocument.mDocument.title;
   String str2 = localResources.getString(2131362404, arrayOfObject);
   String str3 = localResources.getString(2131362403);
   showNewNotification("preregistration..released..".concat(str1), str2, str2, str3, str3, 2130838132, paramBitmap, -1, localIntent1, true, localIntent2);
 }
Пример #3
0
 public final Builder setDocument(Document paramDocument) {
   this.docid = paramDocument.getFullDocid();
   this.docidStr = paramDocument.mDocument.docid;
   this.document = paramDocument;
   return this;
 }