diff --git a/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationActivity.kt b/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationActivity.kt index 3043a32..8c437c9 100644 --- a/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationActivity.kt +++ b/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationActivity.kt @@ -15,9 +15,9 @@ abstract class BaseNavigationActivity : TouchinActivity() { ) } - abstract fun getFragmentContainerViewId(): Int + protected abstract fun getFragmentContainerViewId(): Int - open fun getTransition() = FragmentTransaction.TRANSIT_NONE + protected open fun getTransition() = FragmentTransaction.TRANSIT_NONE fun getInnerNavigation() = getNavigationContainer(supportFragmentManager)?.navigation ?: screenNavigation diff --git a/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationFragment.kt b/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationFragment.kt index 2bf4cab..b435be6 100644 --- a/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationFragment.kt +++ b/tabbar-navigation/src/main/java/ru/touchin/roboswag/components/tabbarnavigation/BaseNavigationFragment.kt @@ -16,21 +16,21 @@ abstract class BaseNavigationFragment : Fragment() { private val backPressedListener = OnBackPressedListener { bottomNavigationController.onBackPressed() } - abstract fun getRootLayoutId(): Int + protected abstract fun getRootLayoutId(): Int - abstract fun getNavigationContainerViewId(): Int + protected abstract fun getNavigationContainerViewId(): Int - abstract fun getContentContainerViewId(): Int + protected abstract fun getContentContainerViewId(): Int - abstract fun getContentContainerLayoutId(): Int + protected abstract fun getContentContainerLayoutId(): Int - abstract fun getTopLevelViewControllerId(): Int + protected abstract fun getTopLevelViewControllerId(): Int - abstract fun wrapWithNavigationContainer(): Boolean + protected abstract fun wrapWithNavigationContainer(): Boolean protected abstract fun getNavigationViewControllers(): SparseArray>, Parcelable>> - open fun getReselectListener(): (() -> Unit) = { getNavigationActivity().getInnerNavigation().up() } + protected open fun getReselectListener(): (() -> Unit) = { getNavigationActivity().getInnerNavigation().up() } override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)