Skip to content

Commit

Permalink
setLayerType Software
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Sep 18, 2024
1 parent 5815168 commit bb8a03b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ composeCharts = "0.0.13"
jvmTarget = "17"
compose-compiler = "1.5.15"

libVersion = "2.6.9"
libVersion = "2.7.0"

composeColorfulSliders = "1.2.2"
paletteKtx = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import android.graphics.RectF
import android.os.Bundle
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.View
import android.widget.RelativeLayout
import androidx.appcompat.widget.AppCompatImageView
import com.t8rin.collages.utils.GeometryUtils
Expand Down Expand Up @@ -119,6 +120,7 @@ internal class FrameImageView(
mPaint.isFilterBitmap = true
mPaint.isAntiAlias = true
scaleType = ScaleType.MATRIX
setLayerType(View.LAYER_TYPE_SOFTWARE, mPaint)
}

fun saveInstanceState(outState: Bundle) {
Expand Down

0 comments on commit bb8a03b

Please sign in to comment.