Skip to content

Commit f1e9ecc

Browse files
committed
use the more modern long click UI
1 parent 0a059ee commit f1e9ecc

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ android {
6464
}
6565

6666
dependencies {
67-
implementation 'com.github.SimpleMobileTools:Simple-Commons:94b616f462'
67+
implementation 'com.github.SimpleMobileTools:Simple-Commons:b9309035a9'
6868
implementation 'com.github.tibbi:PdfViewPager:d2af24208d'
6969
implementation 'com.github.Stericson:RootTools:df729dcb13'
7070
implementation 'com.github.Stericson:RootShell:1.6'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ class ItemsAdapter(
819819
item_section.setTextColor(textColor)
820820
item_section.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
821821
} else if (!listItem.isGridTypeDivider) {
822+
setupViewBackground(activity)
822823
item_frame.isSelected = isSelected
823824
val fileName = listItem.name
824825
item_name.text = if (textToHighlight.isEmpty()) fileName else fileName.highlightTextPart(textToHighlight, properPrimaryColor)

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ManageFavoritesAdapter.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.simplemobiletools.commons.activities.BaseSimpleActivity
66
import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
77
import com.simplemobiletools.commons.extensions.getPopupMenuTheme
88
import com.simplemobiletools.commons.extensions.getProperTextColor
9+
import com.simplemobiletools.commons.extensions.setupViewBackground
910
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
1011
import com.simplemobiletools.commons.views.MyRecyclerView
1112
import com.simplemobiletools.filemanager.pro.R
@@ -59,6 +60,7 @@ class ManageFavoritesAdapter(
5960

6061
private fun setupView(view: View, favorite: String, isSelected: Boolean) {
6162
view.apply {
63+
setupViewBackground(activity)
6264
manage_favorite_title.apply {
6365
text = favorite
6466
setTextColor(activity.getProperTextColor())

app/src/main/res/layout/item_file_dir_list.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
android:id="@+id/item_frame"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
7-
android:background="?attr/selectableItemBackground"
8-
android:clickable="true"
9-
android:focusable="true"
10-
android:foreground="@drawable/selector"
7+
android:layout_marginBottom="@dimen/tiny_margin"
118
android:paddingTop="@dimen/tiny_margin"
129
android:paddingBottom="@dimen/tiny_margin">
1310

app/src/main/res/layout/item_manage_favorite.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
android:id="@+id/manage_favorite_holder"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
7-
android:background="?attr/selectableItemBackground"
8-
android:clickable="true"
9-
android:focusable="true"
10-
android:foreground="@drawable/selector"
7+
android:layout_marginBottom="@dimen/tiny_margin"
118
android:paddingStart="@dimen/activity_margin"
129
android:paddingEnd="0dp">
1310

0 commit comments

Comments
 (0)