Merge "Add wtf log for UMO being cut" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6ed51a9469
@@ -23,6 +23,7 @@ import android.annotation.IntDef
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
|
import android.util.Log
|
||||||
import android.util.MathUtils
|
import android.util.MathUtils
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
@@ -48,6 +49,8 @@ import com.android.systemui.util.animation.UniqueObjectHostView
|
|||||||
import com.android.systemui.util.traceSection
|
import com.android.systemui.util.traceSection
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
private val TAG: String = MediaHierarchyManager::class.java.simpleName
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Similarly to isShown but also excludes views that have 0 alpha
|
* Similarly to isShown but also excludes views that have 0 alpha
|
||||||
*/
|
*/
|
||||||
@@ -964,6 +967,14 @@ class MediaHierarchyManager @Inject constructor(
|
|||||||
top,
|
top,
|
||||||
left + currentBounds.width(),
|
left + currentBounds.width(),
|
||||||
top + currentBounds.height())
|
top + currentBounds.height())
|
||||||
|
|
||||||
|
if (mediaFrame.childCount > 0) {
|
||||||
|
val child = mediaFrame.getChildAt(0)
|
||||||
|
if (mediaFrame.height < child.height) {
|
||||||
|
Log.wtf(TAG, "mediaFrame height is too small for child: " +
|
||||||
|
"${mediaFrame.height} vs ${child.height}")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isCrossFadeAnimatorRunning) {
|
if (isCrossFadeAnimatorRunning) {
|
||||||
// When cross-fading with an animation, we only notify the media carousel of the
|
// When cross-fading with an animation, we only notify the media carousel of the
|
||||||
|
|||||||
Reference in New Issue
Block a user