diff options
author | Lyn Han <lynhan@google.com> | 2020-01-07 14:29:20 -0800 |
---|---|---|
committer | Lyn Han <lynhan@google.com> | 2020-01-23 22:42:16 -0800 |
commit | b58c7568d20f844965211d383d621e198004adf1 (patch) | |
tree | 9e92b1ca6f6158e25037efad80b61815dae14103 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 412d30ef2c1d01894ca1d1acbbed1118612f5242 (diff) |
Bubble overflow - core functionality
BubbleStackView
- create show-overflow-button
- create expanded view to show overflow activity
BubbleOverflowActivity
- add adapter for recycler view of BadgedImageViews
- select bubble to promote it out of overflow, to first bubble in row
BubbleExpandedView
- create overflow intent
- add null bubble checks for overflow expanded view
BubbleData
- new list: overflow bubbles
- only repack bubbles in row (leave overflow order alone)
- update sortKey() to account for last access in addition to last
update. When users select a bubble to promote it out of overflow, it
counts as one access (instead of update); if sortKey does not check last
accessed time, the order is lost in the next repacking and the bubble goes
back to overflow.
- remove oldest bubbles if overflow bubble count > 16
BubbleController
- add callback that updates overflow activity when data changes
- allow overflow activity to set callback
- add/remove bubbles from bubble row ui
BadgedImageView
- set update() param to bubble only
- save other params in Bubble.java so that overflow can update
BadgedImageView with just a bubble
Bug: 138116789
Fixes: 148232991
Fixes: 148232992
Test: (manual) add 5+ bubbles: show-overflow-button shows in bubble row
Test: (manual) tap show-overflow-button: overflow shows aged out bubbles
Test: (manual) remove bubbles, count <= 5: overflow button hides
Test: (manual) tap bubble in overflow: bubble promoted to left of top row
Test: atest SystemUITests
Change-Id: I020ee4c9e16b236043c5cc244e610725e86bcc37
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions