)]}'
{
  "commit": "2de48461731828e8df4d146eb55520c1b41543ed",
  "tree": "d9405ff089e80a3442e2ca4141351fdf4e29e86f",
  "parents": [
    "e8544a37420639fdcc2854c6a5eeb09607168e22"
  ],
  "author": {
    "name": "Ioana Alexandru",
    "email": "aioana@google.com",
    "time": "Tue Mar 07 19:31:22 2023 +0000"
  },
  "committer": {
    "name": "Ioana Alexandru",
    "email": "aioana@google.com",
    "time": "Tue Mar 07 19:38:04 2023 +0000"
  },
  "message": "Use backgroundColor for the old toast layout.\n\nSome history necessary to understand why this is needed:\n- From Android R, we started rendering text toasts in System UI instead\n  of having them rendered by the app. As a result, we have two separate\n  layouts for toasts:\n  * targetSdk \u003c 30: transient_notification.xml (rendered by the app)\n  * targetSdg \u003e\u003d 30: text_toast.xml (rendered by SystemUI)\n- We previously used backgroundColor for the toast background\n(toastFrameBackground), but we moved to using surfaceColor (a system\ncolor which matches the device theme).\n\nThe problem is that surfaceColor isn\u0027t available when the toast is\nrendered by the app though, leading to weird behaviors like showing\nlight grey text on a white background if the app\u0027s theme is material\ndark.\n\nTo fix this, we should still use backgroundColor (like before) for\ntoasts that are rendered by the app.\n\nFix: 245678793\nTest: manually triggered toast from app targeting SDK 29, observed\ncolor is correct\n\nChange-Id: I7ab1991c628b85f01391e41b6a03b3bd7f219058\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3259201f6e9bff2edefc30a13979be7224c5f3c6",
      "old_mode": 33188,
      "old_path": "core/res/res/layout/transient_notification.xml",
      "new_id": "8bedb897dc19655ca0aefbcafb5afccd60f59a22",
      "new_mode": 33188,
      "new_path": "core/res/res/layout/transient_notification.xml"
    },
    {
      "type": "modify",
      "old_id": "e9b17df75333b93c10a7b7e6fab5780ca54260a8",
      "old_mode": 33188,
      "old_path": "core/res/res/layout/transient_notification_with_icon.xml",
      "new_id": "0dfb3adc8364afad2ead682c32d86e8d2f19be22",
      "new_mode": 33188,
      "new_path": "core/res/res/layout/transient_notification_with_icon.xml"
    }
  ]
}
