invalidate does not work on Activity :/

This commit is contained in:
Benoit Marty 2021-11-22 16:19:59 +01:00
parent aa0f031910
commit e10af6476f
2 changed files with 7 additions and 2 deletions

View File

@ -16,7 +16,9 @@
package im.vector.app.features.debug.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.airbnb.mvrx.fragmentViewModel
import com.airbnb.mvrx.withState
@ -31,7 +33,9 @@ class DebugPrivateSettingsFragment : VectorBaseFragment<FragmentDebugPrivateSett
return FragmentDebugPrivateSettingsBinding.inflate(inflater, container, false)
}
init {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
setViewListeners()
}

View File

@ -556,7 +556,8 @@ abstract class VectorBaseActivity<VB : ViewBinding> : AppCompatActivity(), Maver
open fun initUiAndData() = Unit
override fun invalidate() = Unit
// Note: does not seem to be called
final override fun invalidate() = Unit
@StringRes
open fun getTitleRes() = -1