Add serializable to Source

This commit is contained in:
Matthieu 2020-10-28 11:19:36 +01:00
parent 1e2638965a
commit 40f4d03bd1
3 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -1,3 +1,5 @@
package com.h.pixeldroid.objects package com.h.pixeldroid.objects
class Source import java.io.Serializable
class Source: Serializable

View File

@ -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