use sorting numbers by numeric values by default

This commit is contained in:
tibbi
2019-05-05 21:32:27 +02:00
parent af50584b39
commit 7f03b85e1b
4 changed files with 8 additions and 3 deletions

View File

@ -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()
}

View File

@ -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)) {