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 a48a16740..88241ab2e 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 @@ -178,6 +178,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList sortingRadio.sorting_dialog_radio_last_modified currSorting and SORT_BY_DATE_TAKEN != 0 -> sortingRadio.sorting_dialog_radio_date_taken currSorting and SORT_BY_RANDOM != 0 -> sortingRadio.sorting_dialog_radio_random + currSorting and SORT_BY_CUSTOM != 0 -> sortingRadio.sorting_dialog_radio_custom else -> sortingRadio.sorting_dialog_radio_name } sortBtn.isChecked = true @@ -82,6 +88,7 @@ class ChangeSortingDialog(val activity: BaseSimpleActivity, val isDirectorySorti R.id.sorting_dialog_radio_size -> SORT_BY_SIZE R.id.sorting_dialog_radio_last_modified -> SORT_BY_DATE_MODIFIED R.id.sorting_dialog_radio_random -> SORT_BY_RANDOM + R.id.sorting_dialog_radio_custom -> SORT_BY_CUSTOM else -> SORT_BY_DATE_TAKEN } diff --git a/app/src/main/res/layout/dialog_change_sorting.xml b/app/src/main/res/layout/dialog_change_sorting.xml index 96fb61ad5..d23537b83 100644 --- a/app/src/main/res/layout/dialog_change_sorting.xml +++ b/app/src/main/res/layout/dialog_change_sorting.xml @@ -1,6 +1,5 @@ - @@ -26,7 +25,7 @@ android:layout_height="wrap_content" android:paddingTop="@dimen/medium_margin" android:paddingBottom="@dimen/medium_margin" - android:text="@string/name"/> + android:text="@string/name" /> + android:text="@string/path" /> + android:text="@string/size" /> + android:text="@string/last_modified" /> + android:text="@string/date_taken" /> + android:text="@string/random" /> + + + android:id="@+id/sorting_dialog_order_divider" + layout="@layout/divider" /> + android:text="@string/ascending" /> + android:text="@string/descending" /> + layout="@layout/divider" /> + android:text="@string/sort_numeric_parts" /> + android:text="@string/use_for_this_folder" /> + android:textSize="@dimen/smaller_text_size" />