)]}'
{
  "commit": "e61400c6d6120c0b676fd8c2ba6537a7af00abca",
  "tree": "f01e9c7b03a8a9df267a5d6a31bbac23a58a454d",
  "parents": [
    "539da553b643479a6cdba95567d96cd3b01e2103"
  ],
  "author": {
    "name": "tomnatan",
    "email": "tomnatan@google.com",
    "time": "Tue Nov 09 18:01:03 2021 +0000"
  },
  "committer": {
    "name": "tomnatan",
    "email": "tomnatan@google.com",
    "time": "Tue Nov 09 18:17:58 2021 +0000"
  },
  "message": "Fix issue where NOT_VISIBLE state is sometimes not logged\n\nThis happens because ActivityMetricsLogger#notifyActivityRemoved is sometimes called before ActivityMetricsLogger#logAppCompatState is called from ActivityRecord#setVisibleRequested. The solution is to keep the correct lastLoggedState and just mark the lastLoggedActivity as null when the activity is removed.\n\nIn addition, avoid logging the same state twice when an activity becomes invisible while there is another visible activity with the same state for the same package UID.\n\nNote that these changes will be tested in a CTS test that will be added\nin a follow up.\n\nFix: 203417779\nFix: 203506108\nTest: atest WmTests:SizeCompatTests\nChange-Id: I056584fc234a605bc0d39ac24f430e969ffc86ee\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d1374362505f6530567898685a1e15ea7d64a4e2",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/wm/ActivityMetricsLogger.java",
      "new_id": "f87856255b3e68f1daf3788ca9959225ba8eb7cf",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/wm/ActivityMetricsLogger.java"
    }
  ]
}
