mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 20:49:36 +01:00
Handle FAB differently
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
3f24da27ec
commit
a707b3f7d1
@ -129,6 +129,7 @@ abstract class BaseController : ButterKnifeController(), ComponentCallbacks {
|
||||
if (changeType == ControllerChangeType.POP_EXIT || changeType == ControllerChangeType.PUSH_EXIT) {
|
||||
activity?.inputEditText?.text = null
|
||||
searchLayout?.searchProgressBar?.isVisible = false
|
||||
floatingActionButton?.isVisible = false
|
||||
}
|
||||
super.onChangeStarted(changeHandler, changeType)
|
||||
}
|
||||
@ -143,7 +144,6 @@ abstract class BaseController : ButterKnifeController(), ComponentCallbacks {
|
||||
activity?.let {
|
||||
if (it is MainActivity) {
|
||||
searchLayout?.isVisible = value
|
||||
floatingActionButton?.isVisible = value
|
||||
floatingActionButton?.setImageResource(getFloatingActionButtonDrawableRes())
|
||||
it.toolbar.isVisible = !value
|
||||
|
||||
|
@ -142,6 +142,11 @@ class ConversationsListView : BaseView() {
|
||||
return view
|
||||
}
|
||||
|
||||
override fun onAttach(view: View) {
|
||||
super.onAttach(view)
|
||||
floatingActionButton?.isVisible = true
|
||||
}
|
||||
|
||||
private fun setSearchQuery(query: CharSequence?) {
|
||||
viewModel.filterLiveData.postValue(query)
|
||||
}
|
||||
|
@ -66,6 +66,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="16dp"
|
||||
android:visibility="gone"
|
||||
app:backgroundTint="@color/colorPrimary"
|
||||
app:srcCompat="@drawable/ic_add_white_24px"
|
||||
app:tint="@color/white" />
|
||||
|
Loading…
Reference in New Issue
Block a user