File tree 3 files changed +7
-5
lines changed
java/fr/free/nrw/commons/customselector/ui/selector
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ class FolderFragment : CommonsDaggerSupportFragment() {
111
111
* Load adapter.
112
112
*/
113
113
private fun handleResult (result : Result ) {
114
- val images = result.images
115
- if (images.isNotEmpty())
116
- {
117
- empty_text.visibility = View .GONE
118
- }
119
114
if (result.status is CallbackStatus .SUCCESS ){
115
+ val images = result.images
116
+ if (images.isNullOrEmpty())
117
+ {
118
+ empty_text.visibility = View .VISIBLE
119
+ }
120
120
folders = ImageHelper .folderListFromImages(result.images)
121
121
folderAdapter.init (folders)
122
122
folderAdapter.notifyDataSetChanged()
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ class ImageFragment: CommonsDaggerSupportFragment() {
154
154
}
155
155
}
156
156
else {
157
+ empty_text.visibility = View .VISIBLE
157
158
selectorRV?.let {
158
159
it.visibility = View .GONE
159
160
}
Original file line number Diff line number Diff line change 19
19
android : textSize =" 20sp"
20
20
android : padding =" @dimen/standard_gap"
21
21
android : text =" @string/no_images_found"
22
+ android : visibility =" gone"
22
23
app : layout_constraintBottom_toBottomOf =" parent"
23
24
app : layout_constraintEnd_toEndOf =" parent"
24
25
app : layout_constraintStart_toStartOf =" parent"
You can’t perform that action at this time.
0 commit comments