forked from upstream-mirrors/quik
Fix empty state text for inbox search
This commit is contained in:
@@ -195,7 +195,10 @@ class MainActivity : QkThemedActivity<MainViewModel>(), MainView {
|
|||||||
conversationsAdapter.flowable = state.page.data
|
conversationsAdapter.flowable = state.page.data
|
||||||
itemTouchHelper.attachToRecyclerView(recyclerView)
|
itemTouchHelper.attachToRecyclerView(recyclerView)
|
||||||
menuItemAdapter.data = state.page.menu
|
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)
|
compose.setVisible(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
<string name="drawer_help">Help & feedback</string>
|
<string name="drawer_help">Help & feedback</string>
|
||||||
|
|
||||||
<string name="inbox_empty_text">Your conversations will appear here</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="archived_empty_text">Your archived conversations will appear here</string>
|
||||||
<string name="scheduled_empty_text">Your scheduled messages will appear here</string>
|
<string name="scheduled_empty_text">Your scheduled messages will appear here</string>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user