mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
use sorting numbers by numeric values by default
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user