commit | 086d062cb28593a6bcbd54925a00dbd682280c8e | [log] [tgz] |
---|---|---|
author | Weng Su <wengsu@google.com> | Wed May 31 20:34:30 2023 +0800 |
committer | Weng Su <wengsu@google.com> | Wed May 31 20:38:36 2023 +0800 |
tree | 83e8a2aecaed6a69633adf62674bc87e49d53125 | |
parent | bbf55cafb91ae033c2606bbcf8ba40f9bfcbfbfe [diff] |
Fix TetherSettings crash issue - When the user is a guest user, the UI will remove all preferences to restrict setting changes. If the ViewModel updates the UI in this situation, it will cause Settings to crash. - Avoid to setup ViewModel when UI is restricted Bug: 284435378 Test: Manual test atest -c TetherSettingsTest Change-Id: I52d4ea717c34eacc9cc2321e3950dc89408049f8