Browse Source

Add empty view

Mario Danic 8 years ago
parent
commit
a553590a24

+ 3 - 0
src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -679,6 +679,9 @@ public class ExtendedListFragment extends Fragment
                 } else if (searchType == SearchType.RECENTLY_ADDED_SEARCH_FILTER) {
                     setMessageForEmptyList(R.string.file_list_empty_headline_server_search,
                             R.string.file_list_empty_recently_added_filter, R.drawable.ic_list_empty_recent);
+                } else if (searchType == SearchType.SHARED_FILTER) {
+                    setMessageForEmptyList(R.string.file_list_empty_shared_headline,
+                            R.string.file_list_empty_shared, R.drawable.ic_list_empty_shared);
                 }
             }
         });

+ 2 - 0
src/main/res/values/strings.xml

@@ -100,6 +100,8 @@
     <string name="local_file_list_empty">There are no files in this folder.</string>
     <string name="file_list_empty_headline_search">No results in this folder</string>
     <string name="file_list_empty_headline_server_search">No results</string>
+    <string name="file_list_empty_shared_headline">No shared files</string>
+    <string name="file_list_empty_shared">Share a photo with a friend?</string>
     <string name="file_list_empty_headline_server_search_videos">No videos</string>
     <string name="file_list_empty_headline_server_search_photos">No photos</string>
     <string name="file_list_empty_search">Try looking in another folder?</string>