mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Fix empty state text for inbox search
This commit is contained in:
@@ -142,7 +142,7 @@ class MainActivity : QkThemedActivity<MainViewModel>(), MainView {
|
||||
// Set the FAB compose icon color
|
||||
colors.textPrimaryOnTheme
|
||||
.doOnNext { color -> compose.setTint(color) }
|
||||
.doOnNext { color -> itemTouchCallback.iconColor = color}
|
||||
.doOnNext { color -> itemTouchCallback.iconColor = color }
|
||||
.autoDisposable(scope())
|
||||
.subscribe()
|
||||
|
||||
@@ -195,7 +195,10 @@ class MainActivity : QkThemedActivity<MainViewModel>(), MainView {
|
||||
conversationsAdapter.flowable = state.page.data
|
||||
itemTouchHelper.attachToRecyclerView(recyclerView)
|
||||
menuItemAdapter.data = state.page.menu
|
||||
empty.setText(R.string.inbox_empty_text)
|
||||
empty.setText(when (state.page.showClearButton) {
|
||||
true -> R.string.inbox_search_empty_text
|
||||
false -> R.string.inbox_empty_text
|
||||
})
|
||||
compose.setVisible(true)
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
<string name="drawer_help">Help & feedback</string>
|
||||
|
||||
<string name="inbox_empty_text">Your conversations will appear here</string>
|
||||
<string name="inbox_search_empty_text">No results</string>
|
||||
<string name="archived_empty_text">Your archived conversations will appear here</string>
|
||||
<string name="scheduled_empty_text">Your scheduled messages will appear here</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user