Add serializable to Source
This commit is contained in:
parent
1e2638965a
commit
40f4d03bd1
|
@ -129,7 +129,7 @@ class PhotoEditActivity : AppCompatActivity(), FilterListFragmentListener, EditI
|
||||||
//<editor-fold desc="ON LAUNCH">
|
//<editor-fold desc="ON LAUNCH">
|
||||||
private fun loadImage() {
|
private fun loadImage() {
|
||||||
originalImage = MediaStore.Images.Media.getBitmap(contentResolver, imageUri)
|
originalImage = MediaStore.Images.Media.getBitmap(contentResolver, imageUri)
|
||||||
compressedImage = resizeImage(originalImage!!.copy(BITMAP_CONFIG, true))
|
compressedImage = resizeImage(originalImage!!)
|
||||||
compressedOriginalImage = compressedImage!!.copy(BITMAP_CONFIG, true)
|
compressedOriginalImage = compressedImage!!.copy(BITMAP_CONFIG, true)
|
||||||
filteredImage = compressedImage!!.copy(BITMAP_CONFIG, true)
|
filteredImage = compressedImage!!.copy(BITMAP_CONFIG, true)
|
||||||
Glide.with(this).load(compressedImage).into(image_preview)
|
Glide.with(this).load(compressedImage).into(image_preview)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
package com.h.pixeldroid.objects
|
package com.h.pixeldroid.objects
|
||||||
|
|
||||||
class Source
|
import java.io.Serializable
|
||||||
|
|
||||||
|
class Source: Serializable
|
||||||
|
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|
Loading…
Reference in New Issue