mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
rename shownBitmap to initialBitmap
This commit is contained in:
parent
e17aa8b4b8
commit
f2151c1536
1 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
private var isCropIntent = false
|
||||
private var isEditingWithThirdParty = false
|
||||
|
||||
private var shownBitmap: Bitmap? = null
|
||||
private var initialBitmap: Bitmap? = null
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
@ -128,8 +128,8 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
.listener(object : RequestListener<Bitmap> {
|
||||
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Bitmap>?, isFirstResource: Boolean) = false
|
||||
|
||||
override fun onResourceReady(resource: Bitmap?, model: Any?, target: Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||
shownBitmap = resource
|
||||
override fun onResourceReady(bitmap: Bitmap?, model: Any?, target: Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {
|
||||
initialBitmap = bitmap
|
||||
return false
|
||||
}
|
||||
}).into(default_image_view)
|
||||
|
@ -287,7 +287,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
|
|||
|
||||
val filterItems = filterThumbnailsManager.processThumbs()
|
||||
val adapter = FiltersAdapter(applicationContext, filterItems) {
|
||||
val newBitmap = Bitmap.createBitmap(shownBitmap)
|
||||
val newBitmap = Bitmap.createBitmap(initialBitmap)
|
||||
default_image_view.setImageBitmap(it.filter.processFilter(newBitmap))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue