File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
loadingstateview-ktx/src/main/java/com/dylanc/loadingstateview Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import androidx.annotation.StringRes
2222import androidx.fragment.app.Fragment
2323
2424interface LoadingState : Decorative , OnReloadListener {
25+ val loadingStateViewType: Any?
2526
2627 @Deprecated(" Use Activity.decorateContentView(this) instead" , ReplaceWith (" decorateContentView(decorative)" ))
2728 fun Activity.decorateContentView (listener : OnReloadListener , decorative : Decorative ) = decorateContentView(decorative)
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ import androidx.fragment.app.Fragment
2525class LoadingStateDelegate : LoadingState {
2626 private var loadingStateView: LoadingStateView ? = null
2727
28+ override val loadingStateViewType: Any?
29+ get() = loadingStateView?.currentViewType
30+
2831 override fun Activity.decorateContentView (decorative : Decorative ) {
2932 findViewById<ViewGroup >(android.R .id.content).getChildAt(0 ).decorate(decorative)
3033 }
You can’t perform that action at this time.
0 commit comments