adding 16:10 crop ratio, used mostly on tablets

This commit is contained in:
tibbi 2020-01-16 18:58:55 +01:00
parent 8035d90e36
commit daf87be965
2 changed files with 4 additions and 1 deletions

View file

@ -69,7 +69,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.21.22' implementation 'com.simplemobiletools:commons:5.21.23'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -201,6 +201,8 @@ class NewEditActivity : SimpleActivity() {
add(CropAspectAsset("my_crop_4_5", 4, 5, false)) add(CropAspectAsset("my_crop_4_5", 4, 5, false))
add(CropAspectAsset("my_crop_37_18", 37, 18, false)) add(CropAspectAsset("my_crop_37_18", 37, 18, false))
add(CropAspectAsset("my_crop_18_37", 18, 37, false)) add(CropAspectAsset("my_crop_18_37", 18, 37, false))
add(CropAspectAsset("my_crop_16_10", 16, 10, false))
add(CropAspectAsset("my_crop_10_16", 10, 16, false))
} }
settingsList.getSettingsModel(UiConfigAspect::class.java).aspectList.apply { settingsList.getSettingsModel(UiConfigAspect::class.java).aspectList.apply {
@ -208,6 +210,7 @@ class NewEditActivity : SimpleActivity() {
add(ToggleAspectItem(CropAspectItem("my_crop_19_9"), CropAspectItem("my_crop_9_19"))) add(ToggleAspectItem(CropAspectItem("my_crop_19_9"), CropAspectItem("my_crop_9_19")))
add(ToggleAspectItem(CropAspectItem("my_crop_5_4"), CropAspectItem("my_crop_4_5"))) add(ToggleAspectItem(CropAspectItem("my_crop_5_4"), CropAspectItem("my_crop_4_5")))
add(ToggleAspectItem(CropAspectItem("my_crop_37_18"), CropAspectItem("my_crop_18_37"))) add(ToggleAspectItem(CropAspectItem("my_crop_37_18"), CropAspectItem("my_crop_18_37")))
add(ToggleAspectItem(CropAspectItem("my_crop_16_10"), CropAspectItem("my_crop_10_16")))
} }
settingsList.getSettingsModel(UiConfigFilter::class.java).setFilterList( settingsList.getSettingsModel(UiConfigFilter::class.java).setFilterList(