File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
app/src/main/java/com/owncloud/android/ui Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ class UnifiedSearchListAdapter(
219
219
notifyDataSetChanged()
220
220
}
221
221
222
+ fun isCurrentDirItemsEmpty (): Boolean = currentDirItems.isEmpty()
223
+
222
224
init {
223
225
// initialise thumbnails cache on background thread
224
226
ThumbnailsCacheManager .initDiskCacheAsync()
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ class UnifiedSearchFragment :
316
316
count + = it.entries.size
317
317
}
318
318
319
- if (count == 0 && pair.first?.isNotEmpty() == true && context != null ) {
319
+ if (count == 0 && pair.first?.isNotEmpty() == true && context != null && ! adapter.isCurrentDirItemsEmpty() ) {
320
320
showNoResult()
321
321
}
322
322
}
You can’t perform that action at this time.
0 commit comments