summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Aaron Liu <aaronjli@google.com> 2023-11-27 09:49:00 -0800
committer Aaron Liu <aaronjli@google.com> 2023-11-28 09:36:01 -0800
commit3c60580d080d798d8fa2199d5187f96f1d280d14 (patch)
tree2395cc31d626854dd65912c28e2ab00326a71f85 /api/api_test.go
parent57ea02322e889177f886e2e61bef646353cf60a8 (diff)
Ensure that we destroy view before adding another
Whenever a blueprint is propagated, which happens every time the configuration changes (rotations, etc), the preview renderer is adding a udfps view and smartspace view and not removing the previous one. 1. Only inflate udfps view once. It does not rely on the blueprint framework and can be moved outside of the view binder. 2. Remove smartspace view if it is not null. Test: add logs to onattach and ondetach to smartspace and change blueprints via adb. Fixes: 308353286 Flag: NONE Change-Id: Iefb240697b940417d84e7dbdf7d9e1488ecc03ba
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions