Log TaskThumbnailView state changes with task ID and view hashcode
Fix: 392417881 Flag: com.android.launcher3.enable_refactor_task_thumbnail Test: Manual. Change-Id: I17c63afb106e66d87882618580eebd5105d1cb4d
This commit is contained in:
1 parent
11c035cb2f
commit
d4ae2b1b8f
2 files changed
+10
-3
No files matched your search
@@ -151,8 +151,8 @@ class TaskThumbnailView : FrameLayout, ViewPool.Reusable {
|
||||
}
|
||||
}
|
||||
|
||||
fun setState(state: TaskThumbnailUiState) {
|
||||
Log.d(TAG, "viewModelUiState changed from: $uiState to: $state")
|
||||
fun setState(state: TaskThumbnailUiState, taskId: Int? = null) {
|
||||
logDebug("taskId: $taskId - uiState changed from: $uiState to: $state")
|
||||
if (uiState == state) return
|
||||
uiState = state
|
||||
resetViews()
|
||||
@@ -245,6 +245,10 @@ class TaskThumbnailView : FrameLayout, ViewPool.Reusable {
|
||||
thumbnailView.imageMatrix = viewModel.getThumbnailPositionState(width, height, isLayoutRtl)
|
||||
}
|
||||
|
||||
private fun logDebug(message: String) {
|
||||
Log.d(TAG, "[TaskThumbnailView@${Integer.toHexString(hashCode())}] $message")
|
||||
}
|
||||
|
||||
private fun maybeCreateHeader() {
|
||||
if (enableDesktopExplodedView() && taskThumbnailViewHeader == null) {
|
||||
taskThumbnailViewHeader =
|
||||
|
||||
Reference in new issue
Block a user