splitting some Glide code at the editor on multiple lines
This commit is contained in:
parent
57a280c96e
commit
f5c32d0a82
1 changed files with 6 additions and 1 deletions
|
@ -384,7 +384,12 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
||||||
if (currPrimaryAction == PRIMARY_ACTION_FILTER && bottom_actions_filter_list.adapter == null) {
|
if (currPrimaryAction == PRIMARY_ACTION_FILTER && bottom_actions_filter_list.adapter == null) {
|
||||||
Thread {
|
Thread {
|
||||||
val thumbnailSize = resources.getDimension(R.dimen.bottom_filters_thumbnail_size).toInt()
|
val thumbnailSize = resources.getDimension(R.dimen.bottom_filters_thumbnail_size).toInt()
|
||||||
val bitmap = Glide.with(this).asBitmap().load(uri).submit(thumbnailSize, thumbnailSize).get()
|
val bitmap = Glide.with(this)
|
||||||
|
.asBitmap()
|
||||||
|
.load(uri)
|
||||||
|
.submit(thumbnailSize, thumbnailSize)
|
||||||
|
.get()
|
||||||
|
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
val filterThumbnailsManager = FilterThumbnailsManager()
|
val filterThumbnailsManager = FilterThumbnailsManager()
|
||||||
filterThumbnailsManager.clearThumbs()
|
filterThumbnailsManager.clearThumbs()
|
||||||
|
|
Loading…
Reference in a new issue