Skip to content

Commit b15501c

Browse files
committed
Use consistent grid icon size for folders and files
1 parent ead1ebd commit b15501c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/src/main/kotlin/org/fossify/filemanager/helpers/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Config(context: Context) : BaseConfig(context) {
107107

108108
private fun getDefaultFileColumnCount(): Int {
109109
val isPortrait = context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT
110-
return if (isPortrait) 3 else 5
110+
return if (isPortrait) 4 else 8
111111
}
112112

113113
var displayFilenames: Boolean

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121

2222
<ImageView
2323
android:id="@+id/item_icon"
24-
android:layout_width="@dimen/grid_view_icon_size"
25-
android:layout_height="@dimen/grid_view_icon_size"
24+
android:layout_width="match_parent"
25+
android:layout_height="wrap_content"
2626
android:layout_centerHorizontal="true"
2727
android:adjustViewBounds="true"
28+
android:padding="@dimen/small_margin"
2829
android:src="@drawable/ic_folder_vector" />
2930

3031
<TextView

0 commit comments

Comments
 (0)