From 91e2638c214d1c4312ac5a6807eb7fd747c77d6b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 1 Jul 2018 11:19:54 +0200 Subject: [PATCH] use a new cursor icon for Rename --- app/build.gradle | 2 +- .../gallery/adapters/ManageFoldersAdapter.kt | 2 +- .../gallery/adapters/ManageHiddenFoldersAdapter.kt | 2 +- .../{ic_edit.png => ic_crop_rotate.png} | Bin .../{ic_edit.png => ic_crop_rotate.png} | Bin .../{ic_edit.png => ic_crop_rotate.png} | Bin .../{ic_edit.png => ic_crop_rotate.png} | Bin app/src/main/res/layout/bottom_actions.xml | 2 +- app/src/main/res/menu/cab_directories.xml | 2 +- app/src/main/res/menu/cab_media.xml | 2 +- app/src/main/res/menu/menu_viewpager.xml | 5 +++-- app/src/main/res/menu/photo_video_menu.xml | 2 +- 12 files changed, 10 insertions(+), 9 deletions(-) rename app/src/main/res/drawable-hdpi/{ic_edit.png => ic_crop_rotate.png} (100%) rename app/src/main/res/drawable-xhdpi/{ic_edit.png => ic_crop_rotate.png} (100%) rename app/src/main/res/drawable-xxhdpi/{ic_edit.png => ic_crop_rotate.png} (100%) rename app/src/main/res/drawable-xxxhdpi/{ic_edit.png => ic_crop_rotate.png} (100%) diff --git a/app/build.gradle b/app/build.gradle index 1affb01fe..218b725d2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -47,7 +47,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:4.3.11' + implementation 'com.simplemobiletools:commons:4.3.13' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'com.android.support:multidex:1.0.3' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageFoldersAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageFoldersAdapter.kt index 48bda73f8..14a493338 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageFoldersAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageFoldersAdapter.kt @@ -45,7 +45,7 @@ class ManageFoldersAdapter(activity: BaseSimpleActivity, var folders: ArrayList< override fun onBindViewHolder(holder: ViewHolder, position: Int) { val folder = folders[position] - val view = holder.bindView(folder) { itemView, adapterPosition -> + val view = holder.bindView(folder, true, true) { itemView, adapterPosition -> setupView(itemView, folder) } bindViewHolder(holder, position, view) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageHiddenFoldersAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageHiddenFoldersAdapter.kt index a603df9e1..101b12764 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageHiddenFoldersAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/ManageHiddenFoldersAdapter.kt @@ -47,7 +47,7 @@ class ManageHiddenFoldersAdapter(activity: BaseSimpleActivity, var folders: Arra override fun onBindViewHolder(holder: ViewHolder, position: Int) { val folder = folders[position] - val view = holder.bindView(folder) { itemView, adapterPosition -> + val view = holder.bindView(folder, true, true) { itemView, adapterPosition -> setupView(itemView, folder) } bindViewHolder(holder, position, view) diff --git a/app/src/main/res/drawable-hdpi/ic_edit.png b/app/src/main/res/drawable-hdpi/ic_crop_rotate.png similarity index 100% rename from app/src/main/res/drawable-hdpi/ic_edit.png rename to app/src/main/res/drawable-hdpi/ic_crop_rotate.png diff --git a/app/src/main/res/drawable-xhdpi/ic_edit.png b/app/src/main/res/drawable-xhdpi/ic_crop_rotate.png similarity index 100% rename from app/src/main/res/drawable-xhdpi/ic_edit.png rename to app/src/main/res/drawable-xhdpi/ic_crop_rotate.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_edit.png b/app/src/main/res/drawable-xxhdpi/ic_crop_rotate.png similarity index 100% rename from app/src/main/res/drawable-xxhdpi/ic_edit.png rename to app/src/main/res/drawable-xxhdpi/ic_crop_rotate.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_edit.png b/app/src/main/res/drawable-xxxhdpi/ic_crop_rotate.png similarity index 100% rename from app/src/main/res/drawable-xxxhdpi/ic_edit.png rename to app/src/main/res/drawable-xxxhdpi/ic_crop_rotate.png diff --git a/app/src/main/res/layout/bottom_actions.xml b/app/src/main/res/layout/bottom_actions.xml index 2a7f9f677..4e433e8a2 100644 --- a/app/src/main/res/layout/bottom_actions.xml +++ b/app/src/main/res/layout/bottom_actions.xml @@ -26,7 +26,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="@dimen/medium_margin" - android:src="@drawable/ic_rename" + android:src="@drawable/ic_edit" app:layout_constraintEnd_toStartOf="@+id/bottom_share" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/bottom_favorite"/> diff --git a/app/src/main/res/menu/cab_directories.xml b/app/src/main/res/menu/cab_directories.xml index a898e1644..e2e19a58b 100644 --- a/app/src/main/res/menu/cab_directories.xml +++ b/app/src/main/res/menu/cab_directories.xml @@ -23,7 +23,7 @@ app:showAsAction="ifRoom"/> + app:showAsAction="ifRoom"/>