Move to unmerged30.

This commit is contained in:
Nikolay Igotti
2020-09-10 17:56:55 +03:00
parent 68151f2ca1
commit a61dbff798
5 changed files with 6 additions and 7 deletions

View File

@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

View File

@@ -196,7 +196,7 @@ fun imageByGesture(
drag: DragHandler
): Image {
val bitmap = cropBitmapByScale(content.getSelectedImage(), scale.factor.value, drag)
val image = Image.makeFromEncoded(toByteArray(bitmap), IRect(0, 0, bitmap.width, bitmap.height))
val image = Image.makeFromEncoded(toByteArray(bitmap))
if (scale.factor.value > 1f)
return image

View File

@@ -153,8 +153,7 @@ fun setPreviewImageUI(content: ContentState) {
if (content.isMainImageEmpty())
icEmpty()
else Image.makeFromEncoded(
toByteArray(content.getSelectedImage()),
IRect(0, 0, content.getSelectedImage().width, content.getSelectedImage().height)
toByteArray(content.getSelectedImage())
).asImageAsset(),
modifier = Modifier
.fillMaxWidth().padding(start = 1.dp, top = 1.dp, end = 1.dp, bottom = 5.dp),
@@ -189,8 +188,7 @@ fun setMiniatureUI(
) {
Image(
Image.makeFromEncoded(
toByteArray(picture.image),
IRect(0, 0, picture.image.width, picture.image.height)
toByteArray(picture.image)
).asImageAsset(),
modifier = Modifier.preferredHeight(70.dp)
.preferredWidth(90.dp)

View File

@@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-build53")
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-unmerged30")
classpath("com.android.tools.build:gradle:4.0.1")
classpath(kotlin("gradle-plugin", version = "1.4.0"))
}

View File

@@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-build53")
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-unmerged30")
classpath("com.android.tools.build:gradle:4.0.1")
classpath(kotlin("gradle-plugin", version = "1.4.0"))
}