public void bindView(View view, Context context, Cursor cursor) { Log.d("smali", "Lcom/samsung/sec/mtv/ui/channelguide/MtvUiFragReservationList$ReservationAdapter;->bindView(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V"); MtvReservation mtvreservation = MtvReservationManager.builder(cursor); view.setTag(mtvreservation); String s; String s1; if(DateFormat.is24HourFormat(Log.d(MtvUiFragReservationList.this).getApplicationContext())) s = (new SimpleDateFormat("M/d (EEE) H:mm")).format(new Date(mtvreservation.mTimeStart)); else s = (new SimpleDateFormat("M/d (EEE) h:mm a")).format(new Date(mtvreservation.mTimeStart)); if(mtvreservation.mTimeEnd > 0L) { if(DateFormat.is24HourFormat(Log.d(MtvUiFragReservationList.this).getApplicationContext())) s1 = (new StringBuilder()).append(s).append(" - ").append((new SimpleDateFormat("H:mm")).format(new Date(mtvreservation.mTimeEnd))).toString(); else s1 = (new StringBuilder()).append(s).append(" - ").append((new SimpleDateFormat("h:mm a")).format(new Date(mtvreservation.mTimeEnd))).toString(); } else { s1 = (new StringBuilder()).append(s).append(" - ").toString(); } ((ImageView)view.findViewById(0x7f0a0053)).setImageDrawable(mIcon[mtvreservation.mPgmType][selectStatusIconIndex(mtvreservation)]); ((TextView)view.findViewById(0x7f0a0113)).setText((new StringBuilder()).append(s1).append(" ").append("Ch ").append(mtvreservation.mPch).append(" ").toString()); ((TextView)view.findViewById(0x7f0a0112)).setText(mtvreservation.mPgmName); view.findViewById(0x7f0a0048).setVisibility(8); }
public void onClick(DialogInterface dialoginterface, int i) { Log.d("smali", "Lcom/samsung/sec/mtv/ui/channelguide/MtvUiFragReservationList$ReservationDetail$2;->onClick(Landroid/content/DialogInterface;I)V"); MtvReservationManager.delete(getActivity(), ((MtvProgram) (mtvreserve)).mUriId); if(Log.d(ReservationDetail.this) != null) Log.d(ReservationDetail.this).dismiss(); }
public int selectStatusIconIndex(MtvReservation mtvreservation) { Log.d("smali", "Lcom/samsung/sec/mtv/ui/channelguide/MtvUiFragReservationList$ReservationAdapter;->selectStatusIconIndex(Lcom/samsung/sec/mtv/provider/MtvReservation;)I"); int i; if(mtvreservation.mPgmStatus == 0 && mtvreservation.mTimeStart < System.currentTimeMillis() - 5000L) { MtvUtilDebug.Mid(Log.d(), "selectStatusIconIndex() : ooops!!! hit an expired reservation,setting it failed"); i = 1; MtvReservationManager.UpdateStatus(getActivity(), mtvreservation, 2); } else if(mtvreservation.mPgmStatus == 0 || mtvreservation.mPgmStatus == 6 || mtvreservation.mPgmStatus == 1) i = 0; else i = 1; return i; }