use of org.telegram.ui.Components.CrossfadeDrawable in project Telegram-FOSS by Telegram-FOSS-Team.
the class ProfileActivity method getVerifiedCrossfadeDrawable.
private Drawable getVerifiedCrossfadeDrawable() {
if (verifiedCrossfadeDrawable == null) {
verifiedDrawable = Theme.profile_verifiedDrawable.getConstantState().newDrawable().mutate();
verifiedCheckDrawable = Theme.profile_verifiedCheckDrawable.getConstantState().newDrawable().mutate();
verifiedCrossfadeDrawable = new CrossfadeDrawable(new CombinedDrawable(verifiedDrawable, verifiedCheckDrawable), ContextCompat.getDrawable(getParentActivity(), R.drawable.verified_profile));
}
return verifiedCrossfadeDrawable;
}
Aggregations