unwrap

open fun <T : Drawable?> unwrap(@NonNull drawable: Drawable): T(source)

Unwrap drawable if it is the result of a call to wrap. If the drawable is not the result of a call to wrap then drawable is returned as-is.

Return

the unwrapped Drawable or drawable if it hasn't been wrapped.

Parameters

drawable

The drawable to unwrap

See also