adding a 19:9 aspect ratio crop too

This commit is contained in:
tibbi 2019-12-20 20:40:26 +01:00
parent 58cedd24f6
commit 2c37b23e1e

View file

@ -177,10 +177,13 @@ class NewEditActivity : SimpleActivity() {
settingsList.config.getAssetMap(CropAspectAsset::class.java).apply {
add(CropAspectAsset("my_crop_1_2", 1, 2, false))
add(CropAspectAsset("my_crop_2_1", 2, 1, false))
add(CropAspectAsset("my_crop_19_9", 19, 9, false))
add(CropAspectAsset("my_crop_9_19", 9, 19, false))
}
settingsList.getSettingsModel(UiConfigAspect::class.java).aspectList.apply {
add(ToggleAspectItem(CropAspectItem("my_crop_2_1"), CropAspectItem("my_crop_1_2")))
add(ToggleAspectItem(CropAspectItem("my_crop_19_9"), CropAspectItem("my_crop_9_19")))
}
settingsList.getSettingsModel(UiConfigFilter::class.java).setFilterList(