mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 00:05:04 +01:00
Improvements to search
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
4e5f69c9da
commit
6520327c01
@ -127,6 +127,7 @@ class ConversationsListView : BaseView() {
|
||||
|
||||
viewModel.apply {
|
||||
avatar.observe(this@ConversationsListView) { avatar ->
|
||||
activity?.settingsButton?.imageTintList = null
|
||||
activity?.settingsButton?.setImageDrawable(avatar)
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ class ConversationsListViewModel constructor(
|
||||
|
||||
var messageData: String? = null
|
||||
val networkStateLiveData: MutableLiveData<ConversationsListViewNetworkState> = MutableLiveData(ConversationsListViewNetworkState.LOADING)
|
||||
val avatar: MutableLiveData<Drawable> = MutableLiveData(DisplayUtils.getRoundedDrawable(context.getDrawable(R.drawable.ic_settings_white_24dp)))
|
||||
val avatar: MutableLiveData<Drawable> = MutableLiveData()
|
||||
val filterLiveData: MutableLiveData<CharSequence?> = MutableLiveData(null)
|
||||
val conversationsLiveData = Transformations.switchMap(globalService.currentUserLiveData) { user ->
|
||||
if (networkStateLiveData.value != ConversationsListViewNetworkState.LOADING) {
|
||||
|
@ -61,7 +61,7 @@
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_arrow_back_black_24dp"
|
||||
android:tint="@color/fg_inverse"
|
||||
android:tint="@color/fg_default"
|
||||
android:visibility="visible"
|
||||
tools:src="@drawable/ic_arrow_back_black_24dp" />
|
||||
|
||||
@ -87,6 +87,7 @@
|
||||
android:layout_toStartOf="@id/rightContainer"
|
||||
android:layout_toEndOf="@id/leftContainer"
|
||||
android:background="@null"
|
||||
android:textColor="@color/conversation_item_header"
|
||||
android:imeOptions="actionSearch|flagNoExtractUi"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:lines="1"
|
||||
@ -112,7 +113,7 @@
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_baseline_clear_24"
|
||||
android:tint="@color/white"
|
||||
android:tint="@color/fg_default"
|
||||
android:transitionName="userAvatar.transitionTag"
|
||||
android:visibility="gone"
|
||||
tools:src="@tools:sample/avatars[0]" />
|
||||
@ -125,6 +126,7 @@
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/ic_settings_white_24dp"
|
||||
android:tint="@color/fg_default"
|
||||
android:transitionName="userAvatar.transitionTag"
|
||||
android:visibility="visible"
|
||||
tools:src="@tools:sample/avatars[0]" />
|
||||
|
Loading…
Reference in New Issue
Block a user