commit | 71cc848a389f158b13473183a545e52800d674b2 | [log] [tgz] |
---|---|---|
author | George Lin <giolin@google.com> | Tue Apr 18 21:26:49 2023 +0000 |
committer | George Lin <giolin@google.com> | Wed Apr 19 16:28:30 2023 +0000 |
tree | 20dd6e2863209ef75ba8ff1d667b2a188fedd7b1 | |
parent | 12147e699dcfb93fd1b419322449f903ef329233 [diff] |
Make clock carousel extend ViewModel Make clock carousel view model has the benefits: 1. view model scope can be used, so that we know what to create a new view model 2. Initial state is applied when new view model created 3. by making allClockIds we avoid redundently create many listeners for the clock registry Test: manually test it works as what it is before Bug: 278784119 Change-Id: Ie805725eee32e390c4442ccaea22a691b83ac106