)]}'
{
  "commit": "8f119d2e57c8ba019be40b8a9656e67c93d2aef1",
  "tree": "2dc2a18e8083c6f1bda98e692855c827fe52cb02",
  "parents": [
    "ee2383657a70ffd419fb32643e88f0a3835a473f"
  ],
  "author": {
    "name": "Catherine Liang",
    "email": "cathliang@google.com",
    "time": "Thu Nov 07 22:52:35 2024 +0000"
  },
  "committer": {
    "name": "Catherine Liang",
    "email": "cathliang@google.com",
    "time": "Mon Nov 11 22:29:37 2024 +0000"
  },
  "message": "Fix selected option not updated after applying color (2/2)\n\nThe issue comes from the diffing utils that we use to compare 2\nOptionItemViewModels and update the recycler view. In\nOptionItemViewModel, the equality check is overridden to check that the\nflow values are equal, and not whether the flows are the same instance,\nbut flow values of the old items could be updated to match new items,\ncausing no view update. This was done to fix the original grid picker\u0027s\nselection animation, which was janky because options were applied and\nreloaded mid-animation (b/273336388). This will no longer be an issue\nin the new picker UI, which uses the preview and apply pattern.\nTherefore create a new OptionItemViewModel2 without overriding the\nequality check.\n\nFlag: com.android.systemui.shared.new_customization_picker_ui\nTest: manually verified \u0026 unit tests\nBug: 350718581\nChange-Id: If892a3f1dc011e9e2a3fd4a1eff507abb1e4d94a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "da3e65c032140752664c563837afad8aa7baa6c6",
      "old_mode": 33188,
      "old_path": "src/com/android/wallpaper/customization/ui/viewmodel/ClockPickerViewModel.kt",
      "new_id": "c0f0ba7e01d8d3dd70055e329135e75da0928a13",
      "new_mode": 33188,
      "new_path": "src/com/android/wallpaper/customization/ui/viewmodel/ClockPickerViewModel.kt"
    },
    {
      "type": "modify",
      "old_id": "26e786730655524d22f922d918a2f4bf23a2d343",
      "old_mode": 33188,
      "old_path": "src/com/android/wallpaper/customization/ui/viewmodel/ColorPickerViewModel2.kt",
      "new_id": "e7efebd09893a387396c656563e636501bd1284e",
      "new_mode": 33188,
      "new_path": "src/com/android/wallpaper/customization/ui/viewmodel/ColorPickerViewModel2.kt"
    },
    {
      "type": "modify",
      "old_id": "fd94b781745f899c7090ebd6cc6d820757c266e8",
      "old_mode": 33188,
      "old_path": "src/com/android/wallpaper/customization/ui/viewmodel/KeyguardQuickAffordancePickerViewModel2.kt",
      "new_id": "fd04580c1008db7e9616c0a3a3fbe13f311a0a13",
      "new_mode": 33188,
      "new_path": "src/com/android/wallpaper/customization/ui/viewmodel/KeyguardQuickAffordancePickerViewModel2.kt"
    },
    {
      "type": "modify",
      "old_id": "a4d0ba00f3e7136f477dfa3b7c675ac4f7797b53",
      "old_mode": 33188,
      "old_path": "tests/robotests/src/com/android/wallpaper/customization/ui/viewmodel/ColorPickerViewModel2Test.kt",
      "new_id": "421d8a01872830b446708c9ea4f8e70b1eb47139",
      "new_mode": 33188,
      "new_path": "tests/robotests/src/com/android/wallpaper/customization/ui/viewmodel/ColorPickerViewModel2Test.kt"
    },
    {
      "type": "modify",
      "old_id": "b6f249e5642e25a47c498f7654172a3ced0407ce",
      "old_mode": 33188,
      "old_path": "tests/robotests/src/com/android/wallpaper/customization/ui/viewmodel/KeyguardQuickAffordancePickerViewModel2Test.kt",
      "new_id": "a7efc45c6f2c9db46398061be8b641fb323bd5a6",
      "new_mode": 33188,
      "new_path": "tests/robotests/src/com/android/wallpaper/customization/ui/viewmodel/KeyguardQuickAffordancePickerViewModel2Test.kt"
    }
  ]
}
