Merge "Add addtional LS shade dragDown logs" into tm-dev am: 2d7e74c5ea

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16940372

Change-Id: Ie1d8cf2f650cc6a57e3ae8eabf2ae4f27ee75fb6
This commit is contained in:
TreeHugger Robot
2022-03-08 15:21:54 +00:00
committed by Automerger Merge Worker
2 changed files with 9 additions and 1 deletions

View File

@@ -304,6 +304,7 @@ class LockscreenShadeTransitionController @Inject constructor(
// override that
forceApplyAmount = true
// Reset the behavior. At this point the animation is already started
logger.logDragDownAmountReset()
dragDownAmount = 0f
forceApplyAmount = false
}
@@ -480,6 +481,7 @@ class LockscreenShadeTransitionController @Inject constructor(
setDragDownAmountAnimated(fullTransitionDistanceByTap.toFloat(), delay = delay) {
// End listener:
// Reset
logger.logDragDownAmountReset()
dragDownAmount = 0f
forceApplyAmount = false
}

View File

@@ -44,7 +44,7 @@ class LSShadeTransitionLogger @Inject constructor(
fun logDragDownAborted() {
buffer.log(TAG, LogLevel.INFO, {}, {
"The drag down was reset"
"The drag down was aborted and reset to 0f."
})
}
@@ -82,6 +82,12 @@ class LSShadeTransitionLogger @Inject constructor(
LockscreenGestureLogger.LockscreenUiEvent.LOCKSCREEN_PULL_SHADE_OPEN)
}
fun logDragDownAmountReset() {
buffer.log(TAG, LogLevel.DEBUG, {}, {
"The drag down amount has been reset to 0f."
})
}
fun logDefaultGoToFullShadeAnimation(delay: Long) {
buffer.log(TAG, LogLevel.DEBUG, {
long1 = delay