Merge "[Mobile] Log the visibilities received by icon views." into udc-qpr-dev

This commit is contained in:
Treehugger Robot
2023-08-03 16:21:33 +00:00
committed by Android (Google) Code Review
2 changed files with 23 additions and 1 deletions

View File

@@ -38,6 +38,19 @@ class VerboseMobileViewLogger
constructor( constructor(
@VerboseMobileViewLog private val buffer: LogBuffer, @VerboseMobileViewLog private val buffer: LogBuffer,
) { ) {
fun logBinderReceivedVisibility(parentView: View, subId: Int, visibility: Boolean) {
buffer.log(
TAG,
LogLevel.VERBOSE,
{
str1 = parentView.getIdForLogging()
int1 = subId
bool1 = visibility
},
{ "Binder[subId=$int1, viewId=$str1] received visibility: $bool1" },
)
}
fun logBinderReceivedSignalIcon(parentView: View, subId: Int, icon: SignalIconModel) { fun logBinderReceivedSignalIcon(parentView: View, subId: Int, icon: SignalIconModel) {
buffer.log( buffer.log(
TAG, TAG,

View File

@@ -99,7 +99,16 @@ object MobileIconBinder {
} }
} }
launch { viewModel.isVisible.collect { isVisible -> view.isVisible = isVisible } } launch {
viewModel.isVisible.collect { isVisible ->
viewModel.verboseLogger?.logBinderReceivedVisibility(
view,
viewModel.subscriptionId,
isVisible
)
view.isVisible = isVisible
}
}
// Set the icon for the triangle // Set the icon for the triangle
launch { launch {