Skip to content

Commit

Permalink
Use core-annotated method approach instead of renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarr21 committed Oct 31, 2023
1 parent 28ffde2 commit 43f27d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public abstract class RibActivity :
override fun onSaveInstanceState(outState: android.os.Bundle) {
super.onSaveInstanceState(outState)
_callbacksFlow.tryEmit(createOnSaveInstanceStateEvent(outState))
router?.dispatchSaveInstanceState(Bundle(outState))
router?.saveInstanceStateInternal(Bundle(outState))
?: throw NullPointerException("Router should not be null")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,4 @@ abstract class ViewRouter<V : View, I : Interactor<*, *>> : Router<I> {
XRay.apply(this, view)
}
}

internal fun dispatchSaveInstanceState(outState: Bundle) {
saveInstanceState(outState)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ protected constructor(
return children
}

internal fun saveInstanceStateInternal(outState: Bundle) {
@CoreFriendModuleApi
public fun saveInstanceStateInternal(outState: Bundle) {
saveInstanceState(outState)
}

Expand Down

0 comments on commit 43f27d3

Please sign in to comment.