Remove unnecessary log message in CompositeWithOpaqueBackground (#3955)

This commit is contained in:
Nik Clayton 2023-08-14 12:00:21 +02:00 committed by GitHub
parent 1275a35ebf
commit 58521b3370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import android.graphics.Paint
import android.graphics.Shader import android.graphics.Shader
import android.graphics.drawable.ColorDrawable import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
import android.util.Log
import android.util.TypedValue import android.util.TypedValue
import android.view.View import android.view.View
import androidx.annotation.AttrRes import androidx.annotation.AttrRes
@ -79,7 +78,6 @@ class CompositeWithOpaqueBackground(val view: View) : BitmapTransformation() {
// If the input bitmap has no alpha channel then there's nothing to do // If the input bitmap has no alpha channel then there's nothing to do
if (!toTransform.hasAlpha()) return toTransform if (!toTransform.hasAlpha()) return toTransform
Log.d(TAG, "toTransform: ${toTransform.width} ${toTransform.height}")
// Get the background drawable for this view, falling back to the given attribute // Get the background drawable for this view, falling back to the given attribute
val backgroundDrawable = view.getFirstNonNullBackgroundOrAttr(android.R.attr.colorBackground) val backgroundDrawable = view.getFirstNonNullBackgroundOrAttr(android.R.attr.colorBackground)
backgroundDrawable ?: return toTransform backgroundDrawable ?: return toTransform