Search in sources :

Example 1 with CrossfadeDrawable

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;
}
Also used : CombinedDrawable(org.telegram.ui.Components.CombinedDrawable) CrossfadeDrawable(org.telegram.ui.Components.CrossfadeDrawable)

Aggregations

CombinedDrawable (org.telegram.ui.Components.CombinedDrawable)1 CrossfadeDrawable (org.telegram.ui.Components.CrossfadeDrawable)1