requestApplyInsetsWhenAttached

Call View.requestApplyInsets in a safe away. If we're attached it calls it straight-away. If not it sets an View.OnAttachStateChangeListener and waits to be attached before calling View.requestApplyInsets.