use sorting numbers by numeric values by default
This commit is contained in:
parent
af50584b39
commit
7f03b85e1b
|
@ -61,7 +61,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.12.12'
|
||||
implementation 'com.simplemobiletools:commons:5.12.15'
|
||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||
|
|
|
@ -149,6 +149,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
}
|
||||
}
|
||||
|
||||
if (!config.wasSortingByNumericValueAdded) {
|
||||
config.wasSortingByNumericValueAdded = true
|
||||
config.sorting = config.sorting or SORT_USE_NUMERIC_VALUE
|
||||
}
|
||||
|
||||
updateWidgets()
|
||||
registerFileUpdateListener()
|
||||
}
|
||||
|
|
|
@ -540,7 +540,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
tag?.getValueAsInt(defaultOrientation) ?: defaultOrientation
|
||||
} else {
|
||||
val exif = android.media.ExifInterface(path)
|
||||
exif.getAttributeInt(android.media.ExifInterface.TAG_ORIENTATION, defaultOrientation)
|
||||
exif.getAttributeInt(TAG_ORIENTATION, defaultOrientation)
|
||||
}
|
||||
|
||||
if (orient == defaultOrientation || context!!.isPathOnOTG(mMedium.path)) {
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
<integer name="media_columns_vertical_scroll">3</integer>
|
||||
<integer name="media_columns_horizontal_scroll">4</integer>
|
||||
|
||||
<integer name="default_sorting">1026</integer>
|
||||
<integer name="default_sorting">33794</integer>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue