From eb3c30ca6e009314a035e6680332388f6480d838 Mon Sep 17 00:00:00 2001 From: A117870935 Date: Thu, 25 May 2023 17:53:59 +0530 Subject: [PATCH] File action menu icon changed and test case added. --- .../com/nextcloud/ui/fileactions/FileAction.kt | 6 +++--- .../java/com/nmc/android/FileActionIconTest.kt | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/src/test/java/com/nmc/android/FileActionIconTest.kt diff --git a/app/src/main/java/com/nextcloud/ui/fileactions/FileAction.kt b/app/src/main/java/com/nextcloud/ui/fileactions/FileAction.kt index 4807c6d2b87c..852e455ce868 100644 --- a/app/src/main/java/com/nextcloud/ui/fileactions/FileAction.kt +++ b/app/src/main/java/com/nextcloud/ui/fileactions/FileAction.kt @@ -19,12 +19,12 @@ enum class FileAction(@IdRes val id: Int, @StringRes val title: Int, @DrawableRe // generic file actions EDIT(R.id.action_edit, R.string.action_edit, R.drawable.ic_edit), - SEE_DETAILS(R.id.action_see_details, R.string.actionbar_see_details, R.drawable.ic_information_outline), + SEE_DETAILS(R.id.action_see_details, R.string.actionbar_see_details, R.drawable.ic_share), REMOVE_FILE(R.id.action_remove_file, R.string.common_remove, R.drawable.ic_delete), // File moving RENAME_FILE(R.id.action_rename_file, R.string.common_rename, R.drawable.ic_rename), - MOVE_OR_COPY(R.id.action_move_or_copy, R.string.actionbar_move_or_copy, R.drawable.ic_external), + MOVE_OR_COPY(R.id.action_move_or_copy, R.string.actionbar_move_or_copy, R.drawable.ic_content_copy), // favorites FAVORITE(R.id.action_favorite, R.string.favorite, R.drawable.ic_star), @@ -32,7 +32,7 @@ enum class FileAction(@IdRes val id: Int, @StringRes val title: Int, @DrawableRe // Uploads and downloads DOWNLOAD_FILE(R.id.action_download_file, R.string.filedetails_download, R.drawable.ic_cloud_download), - SYNC_FILE(R.id.action_sync_file, R.string.filedetails_sync_file, R.drawable.ic_cloud_sync_on), + SYNC_FILE(R.id.action_sync_file, R.string.filedetails_sync_file, R.drawable.ic_cloud_download), CANCEL_SYNC(R.id.action_cancel_sync, R.string.common_cancel_sync, R.drawable.ic_cloud_sync_off), // File sharing diff --git a/app/src/test/java/com/nmc/android/FileActionIconTest.kt b/app/src/test/java/com/nmc/android/FileActionIconTest.kt new file mode 100644 index 000000000000..3d0f612b8e3c --- /dev/null +++ b/app/src/test/java/com/nmc/android/FileActionIconTest.kt @@ -0,0 +1,17 @@ +package com.nmc.android + +import com.nextcloud.ui.fileactions.FileAction +import org.junit.Assert +import org.junit.Test +import com.owncloud.android.R + +class FileActionIconTest { + + @Test + fun verifyShareAndSyncFileIcon(){ + val list = FileAction.SORTED_VALUES + Assert.assertEquals(R.drawable.ic_share,list[4].icon) + Assert.assertEquals(R.drawable.ic_content_copy,list[7].icon) + Assert.assertEquals(R.drawable.ic_cloud_download,list[8].icon) + } +} \ No newline at end of file