public void initHeadDrawer() { Object obj = ViewHolder.access._mth200(mHolder); StringBuilder stringbuilder = (new StringBuilder()).append(mUser.getName()).append(" "); String s; if (mUser.getLastName().equals("null")) { s = ""; } else { s = mUser.getLastName(); } ((TextView) (obj)).setText(stringbuilder.append(s).toString()); ViewHolder.access._mth600(mHolder).setText(mUser.getUsername()); obj = ViewHolder.access._mth400(mHolder); if (mUser.isPremium()) { s = (new StringBuilder()).append(" - Premium until ").append(mUser.getPremiumDate()).toString(); } else { s = " - Standard"; } ((TextView) (obj)).setText(s); Picasso.with(getActivity()).load(mServer.getLinkBadge(mUser.getId(), mUser.getBadgeSecondary())).fit().centerCrop().skipMemoryCache().into(ViewHolder.access._mth300(mHolder)); obj = Picasso.with(getActivity()); if (mServer.getUser().isSkip()) { s = "htt://default"; } else { s = mServer.getLinkUserImage(mUser.getId()); } ((Picasso) (obj)).load(s).placeholder(0x7f0201db).fit().centerCrop().transform(new CropSquareTransformation()).skipMemoryCache().into(ViewHolder.access._mth500(mHolder)); obj = Picasso.with(getActivity()); if (mServer.getUser().isSkip()) { s = "htt://default"; } else { s = mServer.getLinkUserImage(mUser.getId()); } ((Picasso) (obj)).load(s).placeholder(0x7f0201e2).transform(new BlurTransform(getActivity(), 5)).skipMemoryCache().into(ViewHolder.access._mth800(mHolder)); }
public void initData() { mServer = ((App)getActivity().getApplication()).getServer(); mUser = mServer.getUser(); }