Loading
Fix color picker scroll position resets on select (1/2)
After a color option is selected in the color picker, the scroll position jumps back to the start, rather than saving and restoring the scroll position using save and restore instance state. The regression was caused by a combination of 1) color picker restarting twice from config change updates, 2) the view.post callback not being removed when the view is destroyed, leading to two consecutive calls, and 3) recycler view's restore instance state was called before the data was fully binded. The code to update color options on selection was also removed for now because it interferes with the config change restart and saving instance state. This should be brought back once the config change restart is disabled. Bug: 298898592 Test: manually verified Change-Id: Ic694fb3e73dffee1d5b8bcac8e417de886e7a0ae