From a58170f84ad177360bb47c076c20df141e2af52f Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jul 2019 19:52:03 +0200 Subject: [PATCH] show locked folder placeholder cover at the list view too --- .../gallery/pro/adapters/DirectoryAdapter.kt | 14 +++++++------- app/src/main/res/layout/directory_item_list.xml | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index 3e827d825..d0abaee63 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -30,14 +30,14 @@ import com.simplemobiletools.gallery.pro.helpers.* import com.simplemobiletools.gallery.pro.interfaces.DirectoryOperationsListener import com.simplemobiletools.gallery.pro.models.AlbumCover import com.simplemobiletools.gallery.pro.models.Directory -import kotlinx.android.synthetic.main.directory_item_grid.view.* +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_check +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_location +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_lock +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_name +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_pin +import kotlinx.android.synthetic.main.directory_item_grid.view.dir_thumbnail +import kotlinx.android.synthetic.main.directory_item_grid.view.photo_cnt import kotlinx.android.synthetic.main.directory_item_list.view.* -import kotlinx.android.synthetic.main.directory_item_list.view.dir_check -import kotlinx.android.synthetic.main.directory_item_list.view.dir_location -import kotlinx.android.synthetic.main.directory_item_list.view.dir_name -import kotlinx.android.synthetic.main.directory_item_list.view.dir_pin -import kotlinx.android.synthetic.main.directory_item_list.view.dir_thumbnail -import kotlinx.android.synthetic.main.directory_item_list.view.photo_cnt import java.io.File class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList, val listener: DirectoryOperationsListener?, recyclerView: MyRecyclerView, diff --git a/app/src/main/res/layout/directory_item_list.xml b/app/src/main/res/layout/directory_item_list.xml index 8534c4552..c4fd676f3 100644 --- a/app/src/main/res/layout/directory_item_list.xml +++ b/app/src/main/res/layout/directory_item_list.xml @@ -14,6 +14,20 @@ android:layout_width="@dimen/list_view_folder_thumbnail_size" android:layout_height="@dimen/list_view_folder_thumbnail_size"/> + +