)]}'
{
  "commit": "188ab3277892f1ced469531619574d52ea2bf08d",
  "tree": "b4e3fc41aab1f6b51206942bb6966c22cfb6d752",
  "parents": [
    "2940697c9c7d6edecc9ce1d14d9945d92139bf4e"
  ],
  "author": {
    "name": "Bishoy Gendy",
    "email": "bishoygendy@google.com",
    "time": "Fri Feb 03 17:28:27 2023 +0000"
  },
  "committer": {
    "name": "Bishoy Gendy",
    "email": "bishoygendy@google.com",
    "time": "Fri Mar 03 10:01:49 2023 +0000"
  },
  "message": "Fix volume controls show media instead of call volume during a call.\n\n- On some apps like Signal, When the app is in the foreground and there\nis a active phone call, volume controls show media volume control\ninstead of call volume control.\n- Investigation showed that with apps having the right behaviour\n\"MediaSession.dispatchVolumeKeyEvent\" is called, while with apps having\nthe wrong behaviour\n\"MediaSessionService.dispatchVolumeKeyEventToSessionAsSystemService\" is\ncalled.\n- Following this guided to the cause of the steps to reproduce it in\nother apps by calling \"Activty.setMediaController\".\n- Issue was reproducible on the Sample MediaRouter App.\n- Fixed it through checking not being in a call before forwarding the\nvolume event to the session.\n\nBug: 240705522\nTest: Manual using Signal App / Youtube and Sample MediaRouter App.\nChange-Id: Iabac3c80631fd429daba23454488fceedbcc584d\n(cherry picked from commit ed9f9d1b0adfb55557b34bdd76504ab8abdeae7e)\nMerged-In: Iabac3c80631fd429daba23454488fceedbcc584d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bb69192f187fe762992eae411f0b84ca83dd7aae",
      "old_mode": 33188,
      "old_path": "core/java/com/android/internal/policy/PhoneWindow.java",
      "new_id": "7d3a2a397ad52a50944a0ad334b7f440453fceb2",
      "new_mode": 33188,
      "new_path": "core/java/com/android/internal/policy/PhoneWindow.java"
    }
  ]
}
