commit
4690754f5f
|
@ -11,7 +11,8 @@ Other changes:
|
||||||
-
|
-
|
||||||
|
|
||||||
Bugfix 🐛:
|
Bugfix 🐛:
|
||||||
-
|
- Do not show long click help if only invitation are displayed
|
||||||
|
- Fix emoji filtering not working
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -24,8 +24,8 @@ import im.vector.riotx.R
|
||||||
import im.vector.riotx.core.epoxy.helpFooterItem
|
import im.vector.riotx.core.epoxy.helpFooterItem
|
||||||
import im.vector.riotx.core.epoxy.noResultItem
|
import im.vector.riotx.core.epoxy.noResultItem
|
||||||
import im.vector.riotx.core.resources.StringProvider
|
import im.vector.riotx.core.resources.StringProvider
|
||||||
import im.vector.riotx.features.home.RoomListDisplayMode
|
|
||||||
import im.vector.riotx.core.resources.UserPreferencesProvider
|
import im.vector.riotx.core.resources.UserPreferencesProvider
|
||||||
|
import im.vector.riotx.features.home.RoomListDisplayMode
|
||||||
import im.vector.riotx.features.home.room.filtered.FilteredRoomFooterItem
|
import im.vector.riotx.features.home.room.filtered.FilteredRoomFooterItem
|
||||||
import im.vector.riotx.features.home.room.filtered.filteredRoomFooterItem
|
import im.vector.riotx.features.home.room.filtered.filteredRoomFooterItem
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -63,7 +63,7 @@ class RoomSummaryController @Inject constructor(private val stringProvider: Stri
|
||||||
RoomListDisplayMode.SHARE -> {
|
RoomListDisplayMode.SHARE -> {
|
||||||
buildFilteredRooms(nonNullViewState)
|
buildFilteredRooms(nonNullViewState)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
var showHelp = false
|
var showHelp = false
|
||||||
val roomSummaries = nonNullViewState.asyncFilteredRooms()
|
val roomSummaries = nonNullViewState.asyncFilteredRooms()
|
||||||
roomSummaries?.forEach { (category, summaries) ->
|
roomSummaries?.forEach { (category, summaries) ->
|
||||||
|
@ -80,7 +80,10 @@ class RoomSummaryController @Inject constructor(private val stringProvider: Stri
|
||||||
nonNullViewState.joiningErrorRoomsIds,
|
nonNullViewState.joiningErrorRoomsIds,
|
||||||
nonNullViewState.rejectingRoomsIds,
|
nonNullViewState.rejectingRoomsIds,
|
||||||
nonNullViewState.rejectingErrorRoomsIds)
|
nonNullViewState.rejectingErrorRoomsIds)
|
||||||
showHelp = userPreferencesProvider.shouldShowLongClickOnRoomHelp()
|
// Never set showHelp to true for invitation
|
||||||
|
if (category != RoomCategory.INVITE) {
|
||||||
|
showHelp = userPreferencesProvider.shouldShowLongClickOnRoomHelp()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -108,7 +111,7 @@ class RoomSummaryController @Inject constructor(private val stringProvider: Stri
|
||||||
|
|
||||||
when {
|
when {
|
||||||
viewState.displayMode == RoomListDisplayMode.FILTERED -> addFilterFooter(viewState)
|
viewState.displayMode == RoomListDisplayMode.FILTERED -> addFilterFooter(viewState)
|
||||||
filteredSummaries.isEmpty() -> addEmptyFooter()
|
filteredSummaries.isEmpty() -> addEmptyFooter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,12 @@ import android.view.View
|
||||||
import androidx.recyclerview.widget.DividerItemDecoration
|
import androidx.recyclerview.widget.DividerItemDecoration
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.airbnb.epoxy.EpoxyRecyclerView
|
|
||||||
import com.airbnb.mvrx.activityViewModel
|
import com.airbnb.mvrx.activityViewModel
|
||||||
import com.airbnb.mvrx.withState
|
import com.airbnb.mvrx.withState
|
||||||
import im.vector.riotx.R
|
import im.vector.riotx.R
|
||||||
import im.vector.riotx.core.platform.VectorBaseFragment
|
import im.vector.riotx.core.platform.VectorBaseFragment
|
||||||
import im.vector.riotx.core.utils.LiveEvent
|
import im.vector.riotx.core.utils.LiveEvent
|
||||||
|
import kotlinx.android.synthetic.main.fragment_generic_recycler_epoxy.*
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class EmojiSearchResultFragment @Inject constructor(
|
class EmojiSearchResultFragment @Inject constructor(
|
||||||
|
@ -50,7 +50,6 @@ class EmojiSearchResultFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
val lmgr = LinearLayoutManager(context, RecyclerView.VERTICAL, false)
|
val lmgr = LinearLayoutManager(context, RecyclerView.VERTICAL, false)
|
||||||
val epoxyRecyclerView = view as? EpoxyRecyclerView ?: return
|
|
||||||
epoxyRecyclerView.layoutManager = lmgr
|
epoxyRecyclerView.layoutManager = lmgr
|
||||||
val dividerItemDecoration = DividerItemDecoration(epoxyRecyclerView.context, lmgr.orientation)
|
val dividerItemDecoration = DividerItemDecoration(epoxyRecyclerView.context, lmgr.orientation)
|
||||||
epoxyRecyclerView.addItemDecoration(dividerItemDecoration)
|
epoxyRecyclerView.addItemDecoration(dividerItemDecoration)
|
||||||
|
|
|
@ -19,8 +19,9 @@
|
||||||
android:name="im.vector.riotx.features.reactions.EmojiSearchResultFragment"
|
android:name="im.vector.riotx.features.reactions.EmojiSearchResultFragment"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||||
android:visibility="gone" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
style="@style/VectorAppBarLayoutStyle"
|
style="@style/VectorAppBarLayoutStyle"
|
||||||
|
|
Loading…
Reference in New Issue