Small naming refactoring – change getRootViewId to getRootViewLayoutId

This commit is contained in:
Daniil Borisovskii 2019-08-15 11:32:20 +03:00
parent bff71ad795
commit 3247f44bc0
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ abstract class BaseNavigationFragment : Fragment() {
private val backPressedListener = OnBackPressedListener { bottomNavigationController.onBackPressed() }
abstract fun getRootViewId(): Int
abstract fun getRootViewLayoutId(): Int
abstract fun getNavigationContainerId(): Int
@ -47,7 +47,7 @@ abstract class BaseNavigationFragment : Fragment() {
}
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
val fragmentView = inflater.inflate(getRootViewId(), container, false)
val fragmentView = inflater.inflate(getRootViewLayoutId(), container, false)
bottomNavigationController.attach(fragmentView.findViewById(getNavigationContainerId()))