+ * Returns the resource identifier of an image to use as icon associated to a type of folder.
+ *
+ * @param isSharedWithUser flag if the folder is shared with the user
+ * @param isShareByLink flag if the folder is shared by link
+ * @return Identifier of an image resource.
+ */
+ public static int getFolderTypeIconId(boolean isSharedWithUser, boolean isShareByLink) {
+ if (isSharedWithUser) {
+ return R.drawable.shared_with_me_folder;
+ } else if (isShareByLink) {
+ return R.drawable.folder_public;
+ }
+
+ return R.drawable.ic_menu_archive;
+ }
+
+ /**