create filter thumbnails just once, not at every filter toggle
This commit is contained in:
parent
0e7eac1650
commit
efa2c9777e
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
bottom_editor_filter_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_FILTER)
|
bottom_editor_filter_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_FILTER)
|
||||||
bottom_editor_crop_rotate_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_CROP_ROTATE)
|
bottom_editor_crop_rotate_actions.beVisibleIf(currPrimaryAction == PRIMARY_ACTION_CROP_ROTATE)
|
||||||
|
|
||||||
if (currPrimaryAction == PRIMARY_ACTION_FILTER) {
|
if (currPrimaryAction == PRIMARY_ACTION_FILTER && bottom_actions_filter_list.adapter == null) {
|
||||||
Thread {
|
Thread {
|
||||||
val size = resources.getDimension(R.dimen.bottom_filters_thumbnail_height).toInt()
|
val size = resources.getDimension(R.dimen.bottom_filters_thumbnail_height).toInt()
|
||||||
val bitmap = Glide.with(this).asBitmap().load(uri).submit(size, size).get()
|
val bitmap = Glide.with(this).asBitmap().load(uri).submit(size, size).get()
|
||||||
|
|
Loading…
Reference in a new issue