mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
* bug fix * bug fix 2
This commit is contained in:
parent
4ea20fafde
commit
ed572aab6f
2 changed files with 6 additions and 3 deletions
|
|
@ -115,7 +115,9 @@ class FolderFragment : CommonsDaggerSupportFragment() {
|
|||
val images = result.images
|
||||
if(images.isNullOrEmpty())
|
||||
{
|
||||
empty_text.visibility = View.VISIBLE
|
||||
empty_text?.let {
|
||||
it.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
folders = ImageHelper.folderListFromImages(result.images)
|
||||
folderAdapter.init(folders)
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ class ImageFragment: CommonsDaggerSupportFragment() {
|
|||
if(result.status is CallbackStatus.SUCCESS){
|
||||
val images = result.images
|
||||
if(images.isNotEmpty()) {
|
||||
empty_text.visibility = View.GONE
|
||||
filteredImages = ImageHelper.filterImages(images, bucketId)
|
||||
imageAdapter.init(filteredImages)
|
||||
selectorRV?.let {
|
||||
|
|
@ -154,7 +153,9 @@ class ImageFragment: CommonsDaggerSupportFragment() {
|
|||
}
|
||||
}
|
||||
else{
|
||||
empty_text.visibility = View.VISIBLE
|
||||
empty_text?.let {
|
||||
it.visibility = View.VISIBLE
|
||||
}
|
||||
selectorRV?.let{
|
||||
it.visibility = View.GONE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue