Changed visibility modifiers

This commit is contained in:
Daniil Borisovskii 2019-08-15 12:19:54 +03:00
parent 26b65fe831
commit 78ee6ee6fc
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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<Pair<Class<out ViewController<*, *>>, Parcelable>>
open fun getReselectListener(): (() -> Unit) = { getNavigationActivity().getInnerNavigation().up() }
protected open fun getReselectListener(): (() -> Unit) = { getNavigationActivity().getInnerNavigation().up() }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)