소스 검색

correctly return result

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 3 년 전
부모
커밋
256656af5d
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java

+ 2 - 3
src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java

@@ -121,10 +121,9 @@ public class GallerySearchTask extends AsyncTask<Void, Void, GallerySearchTask.R
             GalleryFragment photoFragment = photoFragmentWeakReference.get();
 
             photoFragment.setLoading(false);
+            photoFragment.searchCompleted(result.emptySearch, result.lastTimestamp);
 
-            if (result.success) {
-                photoFragment.searchCompleted(result.emptySearch, result.lastTimestamp);
-            } else {
+            if (!result.success) {
                 photoFragment.setEmptyListMessage(ExtendedListFragment.SearchType.GALLERY_SEARCH);
             }
         }