diff options
author | cecilia <xiaotinghong@google.com> | 2021-05-13 23:24:52 -0400 |
---|---|---|
committer | Cecilia Hong <xiaotinghong@google.com> | 2021-05-31 18:00:22 +0000 |
commit | 38c6f2bf5704cc1c127c2ca12e5a3cf8929c5f57 (patch) | |
tree | d5d26dac3c37f896608a93f2790589972a14e3f7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 9787f77678cc423dd2c760635279768d3046bb04 (diff) |
On Smartspace removal update, only dismiss media recommendation/player
when it's invisible to users.
1. Add the param "immediately" to #onMediaDataLoaded and
on the underlying Smartspace data's removal;
2. #onSmartspaceMediaDataRemoved should only set "immediately" to true
on the user's interaction (e.g. Swipe-to-dismiss);
3. Add #SmartspaceMediaData to preserve the information for a
recommendation's view.
- This data class is to introduce the field - "isActive", which will be set to false when a) The underlying
Smartspace data is removed; b) The Smartspace rec card is dismissed by
the user.
- This appraoch is used instead of marking the SmartspaceTarget
instance to be null: the instance needs to be kept around to block the
duplicate Smartspace updates.
Fixes: 187219674
Fixes: 185787575
Test: Local builds
Change-Id: I19c398fa617749a9e643db33865fd2c5f8f9bdc4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions