ab90a18e2f05c7ae4158b770a9fbe9cbe4544597 |
|
02-Sep-2015 |
Andrew Lee <anwlee@google.com> |
Genericize promo card. + Make ViewHolder generic to generic to promo cards with customized text or graphic layouts, as long as they implement two actions, now designated the primary and secondary action views. This resuses code which is logically similar between promo cards, and hopefully doesn't bite us back in the future if there is a divergence in promo card structure. + Make the GroupingListAdapter slightly "safer". Bug: 23422274 Change-Id: I60bced4dbc61fec2e225a1cae9726ac40ed679a5
/packages/apps/Dialer/src/com/android/dialer/calllog/PromoCardViewHolder.java
|
0599e880630892becf1a1991e6712e0e6d9df3c8 |
|
25-Aug-2015 |
Andrew Lee <anwlee@google.com> |
Rewrite grouping logic in Dialer. - Remove expand/collapse and item type logic in GroupingListAdapter. Losing some potential functionality, but it does not adversely affect how we currently group, and makes grouping easier to understanding. + Rewrite GroupingListAdapter to provide O(1) lookup for group size and getItem. This requires maintaining a SparseIntArray of metadata for each list item. Cut metadata storage from long to int, to help adjust for the larger memory overhead. + Simplify the logic for building and maintaing the metadata in the GroupingListAdapter, offloading much of it to the SparseIntArray. + Explictily add all groups, including groups with single items, in the CallLogBroupBuilder. + Tidied up logic in CallLogGroupBuilder to make it more intuitive what cases it's handling and what's happening. + Updated tests to work and pass with new tests. Bug: 23422274 Change-Id: Ia7a00c4b580813cade87fdc054ffdd702f59c12c
/packages/apps/Dialer/src/com/android/dialer/calllog/PromoCardViewHolder.java
|
bdd2bc2efe22dc5b14cd2d3f5eb20350b69da875 |
|
23-Jun-2015 |
Nancy Chen <nancychen@google.com> |
Add a promo card for visual voicemail. The promo card explains what visual voicemail is, along with a link to settings to disable it and an ok button to dismiss it. Also move common resources from GoogleDialer to the respective resource files. Bug: 21086059 Change-Id: Iecfe778b815fb572667d0cecdb958205ec1b48a0
/packages/apps/Dialer/src/com/android/dialer/calllog/PromoCardViewHolder.java
|