commit | 3986174aad49949b33be32f02bf29a3cc7c931ff | [log] [tgz] |
---|---|---|
author | Chun-Ku Lin <chunkulin@google.com> | Tue Oct 01 18:44:53 2024 +0000 |
committer | Chun-Ku Lin <chunkulin@google.com> | Tue Oct 01 21:28:34 2024 +0000 |
tree | f15d52fdebcf7225a8e6b39c58ccd7e920c38b00 | |
parent | e8ce4cad2ebf148c3a8b22979e9893cdceedf12f [diff] |
Use pref's layoutRes to bindViewHolder in tests If the ViewHolder isn't created with the expected layout resource that matches the Preference's layout resource, it would cause NPE when trying to use the view. Fix: 370776669 Test: atest SelectorWithWidgetPreferenceTest Flag: EXEMPT test only Change-Id: I757d2e17fb389a02189d950e058ab2d392d80fe0