forked from upstream-mirrors/quik
Move toolbar from controller to activity
This commit is contained in:
@@ -3,7 +3,6 @@ package com.moez.QKSMS.common.base
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.annotation.CallSuper
|
||||
import androidx.annotation.LayoutRes
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
@@ -32,13 +31,6 @@ abstract class QkController<ViewContract : QkViewContract<State>, State, Present
|
||||
return inflater.inflate(layoutRes, container, false)
|
||||
}
|
||||
|
||||
@CallSuper
|
||||
override fun onAttach(view: View) {
|
||||
super.onAttach(view)
|
||||
appCompatActivity?.setSupportActionBar(view.toolbar)
|
||||
setTitle(activity?.title)
|
||||
}
|
||||
|
||||
fun setTitle(@StringRes titleId: Int) {
|
||||
setTitle(activity?.getString(titleId))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user