History log of /packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
18b4a2e3b8d60df39b3489c76bf4edffb81e15a5 05-Aug-2015 Tyler Gunn <tgunn@google.com> Add "Call with a note" action.

- Adding call with a note action to the call log. Capability lookup is
cached.
- Moved getLookupKeyFromUri to ContactsCommon.
- Added some extra required values in CallLogListItemViewHolder so that
the call subject dialog is able to build the correct contact photo.

Bug: 22685114
Change-Id: I6665c55137eef7db3ff7ac12d70d823937e8c28b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
142362f8253e7456640c14d6acaf1969afc4b68d 28-Jul-2015 Yorke Lee <yorkelee@google.com> Start contact info cache query thread in onResume

Bug: 22783484

Change-Id: If7881ad6a18eafe0b2ea8411b8472ba444320991
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
601eadd8518b2a3683c50850af2a6db8147ec61a 28-Jul-2015 Yorke Lee <yorkelee@google.com> Remove onPreDrawListener logic

A bug in the PreDrawListener code was causing it to not be removed
from the ViewTreeObserver. This means that everytime a view was
rebound, another onPreDraw listener callback would be added but
never removed.

Compounding the problem is that in each callback, a costly
permission check via IPC is done, causing each frame to slow down
increasingly as more views are bound.

In practice, these PreDrawListeners are no longer needed as they were
only used to prime the Contact info query thread, which happens via
other code paths anyway.

Bug: 22759147
Change-Id: Ica2a31c0849c2eb34ac6f77d49cf23cbe32c6941
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
fb229aa0b59763c91adff25936feede8d7f561c8 22-Jul-2015 Nancy Chen <nancychen@google.com> Merge "Reset voicemail playback when call log is paused." into mnc-dev
0bb059d61f1e6648dee6f0a4cf8f02a6a7c26ce7 21-Jul-2015 Yorke Lee <yorkelee@google.com> Don't auto expand next voicemail after deleting

Pipe onVoicemailDeleted notification through to CallLogAdapter.
Reset expanded position when that happens.

Bug: 22534894

Change-Id: Iec69082bd8b3259f500b523da6d0710bece69fa4
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
85647649a10d680faeb2e73a3d191191058b7d66 17-Jul-2015 Nancy Chen <nancychen@google.com> Reset voicemail playback when call log is paused.

If the user navigates away from the call log, reset the currently
playing voicemail playback. Which includes resetting the start point,
pausing playback, and refreshing the play icon.

Bug: 22530093
Change-Id: I78eda2d86cf0f5b24136a7a9ba299214f155672b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
049203f6f27e66581133e7c1550bfe73e2ca50cf 07-Jul-2015 Yorke Lee <yorkelee@google.com> Don't auto-expand first call log entry

Bug: 22278550
Change-Id: I756703c9441801c623b9dbcbe0d96803de2a3063
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
e3189a4ad7597711222589b22db1a91415641ca6 01-Jul-2015 Yorke Lee <yorkelee@google.com> Don't auto-expand first voicemail card

Bug: 22127956
Change-Id: Ia1a62e799bf7b535da2390bc0e8fa62201b8a684
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
82d30284d32d2e563661ad0a1465c1b9bf501a9f 23-Jun-2015 Yorke Lee <yorkelee@google.com> Add long press actions to call log

When a call log entry is long pressed, show a context menu that
provides the following actions:

1) Copy to clipboard
2) Edit number before call

Bug: 21453814

Change-Id: I796cffbec39847fd9c61891063217b15cb298479
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
d3f6a6c56dec7d47bae1121ed1030f67c26736fe 26-Jun-2015 Andrew Lee <anwlee@google.com> Cache repeated Telecom requests from call log.

This improves call log scrolling performance.

+ Split "Wrapper" into a utility and a cache.
+ Use cache for repeated calls related to call logs.
+ In the process of fixing plumbing and typer, moved some phone call
detail classes into the more appropriate call log package.
+ Update tests.

Bug: 20524705
Change-Id: Ib8ee21e417c19f98f6474a5793416e8f99103b55
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
0feab0229c1c70248ca411d0e95f79aa2ac70c00 24-Jun-2015 Andrew Lee <anwlee@google.com> Merge "Expand the first call log item for new cursors." into mnc-dev
158dfa2dcb89db772f61af6f1f6775fcf5695e60 20-Jun-2015 Andrew Lee <anwlee@google.com> Expand the first call log item for new cursors.

This increases discoverability of the expand actions, and also
makes it quicker to interact with the most recent items.

Bug: 21960523
Change-Id: I6aefdd5b96a86177b26ecc59879d1a787115221a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.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/CallLogAdapter.java
f3ec8ad515ec344acd53fa4acaa9df4cad0c2306 20-Jun-2015 Andrew Lee <anwlee@google.com> Merge "Rewrite of MediaPlayer logic." into mnc-dev
053b9c7a4b2662588706211fd8aa1f8a03ec2901 19-Jun-2015 Andrew Lee <anwlee@google.com> Rewrite of MediaPlayer logic.

+ Control MediaPlayer instance more tightly. Wait until
prepareContent to initialize instance. Release MediaPlayer when it
is no longer needed.
+ Instead of using isFinishing, check explicitly for orientation
change to know whether to release MediaPlayer.
+ Change Presenter to singleton, to address audio change wonkiness.
+ Only create a Presenter if the call log fragment shows voicemail.
+ ... fixing a variety of cases.

- Temporarily disable proximity sensor until blocking issue is fixed.

Bug: 21856243
Change-Id: Ic06e98bb5278467c3cce726a06b6cf3d855861a2
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
03aaf3894d8af53f241d1189c504e44c538100d4 12-Jun-2015 Nancy Chen <nancychen@google.com> Visual indicator that voicemail is unread.

Bold the text for unread voicemail messages.

Bug: 21086059

Change-Id: Ieb07c7fa22a91669faeb425dabb60b1176ec1091
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
bae7b937b6cf6e7eb26d07bec95de38083923614 16-Jun-2015 Andrew Lee <anwlee@google.com> Add play voicemail primary action to call log.

+ Add voicemail primary action button, which expands the call log
and plays immediately when clicked.
+ Pass expand/collapse listener into the view holder. This is
necessary because it needs to be triggered when the "play" primary
action is clicked so that the CallLogAdapter correctly registers
what has been added and binded.
+ Update primary action button state when showing or hiding actions,
so the visibility of the voicemail play button is managed properly.
+ Ensure voicemail playback state is consistent between multiple
call log items when the user initiates a collapse or expand. Add
reset function to help manage this.
+ With the reset, protect against the possibility of functions in
the presenter being called when no voicemail playback view is set.

Bug: 21654755
Change-Id: I7bcf67d27fa08fe77d1334dc084b52effe8d3ccc
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
b0b57a10fbb9bec5c80d7adad8f65750a2f96e1b 13-Jun-2015 Andrew Lee <anwlee@google.com> Convert to primary action button on call log items.

+ This is the call button on the standard call log list item, but
will be play on voicemail call log list items.
+ Add call "list" action for voicemail call log list items.

Change-Id: I4b115b96738b77c8a19c1071d5290e65f93395ac
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
2f05af35af03de67c1c474cd148719b24fac3552 10-Jun-2015 Andrew Lee <anwlee@google.com> Move "Report" to CallDetailActivity.

- Delete old report button/handling code.
+ Convert menu click listeners into single onMenuItemClick method.
+ Add and populate objectId on PhoneCallDetails, to be able to
tell from the CallDetailActivity whether to enable reporting.

Change-Id: Ie4b9a3c1835792cbba04dc826f71fd2e53071400
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
edb22da2b40549631a08150cbfc205e6ad243c20 10-Jun-2015 Andrew Lee <anwlee@google.com> Change PhoneCallDetail fields to be non-final.

It's been a pain to add/change fields on PhoneCallDetails because
a multitude of parameters required for the constructors to create
an instance. I ran into this while considering how to add an
objectId to its parameters, and have previously too...

Make fields non-final so that they are more easily set. This has
the side-effect of making the casing of some initialization code
more straightforward.

+ Change it's constructor to a subset of required fields.
+ Simplify/reorganize CallLogAdapter and CallLogAsyncTaskUtil code.
+ Simplify tests.

Bug: 21733599
Change-Id: I236dfb0b8e6513f4b44dbdae17ce2eb9c9ae4778
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
267e9ebd056ec4973c4b37c38f949e863de4f24c 03-Jun-2015 Andrew Lee <anwlee@google.com> Move VM playback from details to call log.

- Delete voicemail playback in the CallDetailActivity.
+ Add voicemail playback to the call log list items.
+ Move the VoicemailPlaybackPresenter to the CallLogFragment.
+ Fix some retaining state for both call log (expanded items), and
preserve rotation/state functionality for voicemail playback. This
included some changes to the Presenter logic.
+ Fix some tests.

Bug: 21471763
Bug: 21170557
Change-Id: I30aae3a52c5bbf74a5075a9666343c337b1fc0df
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f024f336cd205f2d1501b02aef0adc0e1c9b5879 03-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Rename PhoneNumberUtils APIs" into mnc-dev
4f8c39ab99b575cf6e2eb8ea3a9847d51603e244 02-Jun-2015 Brian Attwell <brianattwell@google.com> Rename PhoneNumberUtils APIs

In response to more API review.

Bug: 21571895
Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c940eada912f952a95d693ae6aab48ef08ef7319 27-May-2015 Andrew Lee <anwlee@google.com> Fix Talkback focus for call log action views.

Bug: 21448455
Change-Id: Icb9f37643d12dde2d46743d2ce3aa2fade7a68a1
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c16ea5ad67bf454158b364dec2f26c95a879c350 20-May-2015 Yorke Lee <yorkelee@google.com> Handle runtime permissions in Dialer

Conditionally disable the following features if the required
permissions are not available:
1) Display of all contacts
2) Display of speed dial
3) Caller ID in call log
4) Import/export contacts
5) Conversion of People.CONTENT_ITEM_TYPE and Phones.CONTENT_ITEM_TYPE
into a phone number (via DIAL intent)
6) UndemoteOutgoingCallReceiver
7) Contact Search
8) Contact lookup in call detail activity
9) Nearby places search

Bug: 20266292

Change-Id: I6d26902acb0eac407ae7bc18c11aa6ec57299506
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
49efd91e50a11dc7bdef8382a0ceac01bc060f77 19-May-2015 Andrew Lee <anwlee@google.com> Performance improvements to call log scrolling.

- Remove call to CallUtil to check if video is enabled. It seems
like it's fine to include the content description of what the
call was, if it was a video call, even if there is not a
video-enabled call account.

- Factor out PhoneNumberDisplayHelper so it doesn't need to be
an instance. This reduces some extra calls to getDisplayNameHelper.
Probably a marginal difference, performance-wise, but it probably
helps a smidgen and also simplifies the need for creating and
passing or recalculating various instances of things.

TODO: It'd be much better if PhoneCallDetails had a builder.
It's terribly painful to fix all the tests when adding fields...

Change-Id: I6da13dc8b6b047043aba871796a8ed13b112a227
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
affe8b7947dd58edc3d9f4685a3bdde53f46762b 14-May-2015 Andrew Lee <anwlee@google.com> Only allow one expanded call log card.

This was some functionality lost in the switch to RecyclerView
and cards.

+ Consolidate old methods into single OnClickListener.
- Deleted unused listener.

Bug: 20433758
Change-Id: Ic4797687548e94c0459e2a3a4134ef0aa5191d90
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
bb48628db6fd444460df61be7afa7fb633f47f50 12-May-2015 Andrew Lee <anwlee@google.com> Indicate whether CallLogAdapter is for Recents.

Bug: 20924950
Change-Id: I6163565ec508d245afd83112927d636a4a50f27e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
84586d3b8eef15f77a91d371b6589e66105effa8 08-May-2015 Andrew Lee <anwlee@google.com> Merge "Add call log list item actions for adding contacts." into mnc-dev
5a9cd71b8ea670cd7c9aebd3dba27ea8cbe769df 08-May-2015 Andrew Lee <anwlee@google.com> Add call log list item actions for adding contacts.

+ Add two actions: create new contact and add to existing contact.
+ Pass in ContactInfo to the CallLogListItem's ViewHolder.

Bug: 20433758
Change-Id: Ic1387b33ebe027fa6ddbdb971996fc7d4c4ac88b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
2478ea44ac57c03a51abee065c60afb5f31efd65 07-May-2015 Andrew Lee <anwlee@google.com> Fix crash in recents log when in Talkback mode.

Views are null because of how tags are set with the new ViewHolder
logic. In the long run, I expect all this logic will be obsolete
once we listen to changes on individual ViewHolders. Presumably,
at that point, we don't need to deal with all this tag business.

Bug: 20521104
Change-Id: Iaf7aff6f576a0a5c097acbd461c7a1d88c932231
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
69705be50fc4c84b35df88c879dd9a4b4de655b3 05-May-2015 Andrew Lee <anwlee@google.com> Add "show call history" list item.

+ Add new VIEW_TYPE to the CallLogAdapter.
+ Reintroduce boolean on CallLogAdapter to specify if a call history
list item should be shown.
+ Add new ViewHolder and layout for footer.
+ Some minor styling tweaks and cleanups.

Bug: 20108202
Change-Id: Ie4a86bff9e53cfd69ef8b061af048f40f4358579
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9afa723dcebf18759c63dc1c976b05050e348d2a 21-Apr-2015 Tyler Gunn <tgunn@google.com> CallLogAdapter cleanup and refactoring.

- Some minor cleanup and refactoring.

Bug: 20393675
Change-Id: I438a9ca222cac87c9323417a216453706393c190
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c1b7d0ae8cdfc0f0dddb5c2bb45c8239ffc6a264 16-Apr-2015 Andrew Lee <anwlee@google.com> Move call log actions into expandable view.

This isn't the prettiest thing ever, but with this the "framework" of
all of the changes for the new visual style of the call logs is in
place. From here on out, the remainder of tasks should be unblocked
and relatively independent.

+ Rename ...ItemViews to ...ItemViewHolder. This probably wasn't
completely necessary, but is more proper given the new architecture.

+ ViewHolder is now officially where most of the independent UI logic
for a single call log list item should live. This changelist moves
further in that direction by storing references and helpers in it, to
lessen what must be passed in from the adapter.

+ Split out the call action from the rest of the actions, since it
has a special treatment on the card.

+ Convert text action buttons into a vertical stack.

+ Consolidate action stylings into a single style, for simplicity.

+ Miscellaneous style and string changes to put things in a better
state. This included tweaking some of the (ripple) backgrounds.

+ Update tests, according to changes.

Bug: 19372817
Change-Id: Ic923c0bcbbc1c153952131d0c772df9e9589fb03
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f7a478d2e65956d819c8126afa3a68646b2508cb 10-Apr-2015 Andrew Lee <anwlee@google.com> Merge "Replace ListView with RecyclerView in call log."
492cd7371c6d8fddc4de85887a4ed9a89d602767 08-Apr-2015 Andrew Lee <anwlee@google.com> Replace ListView with RecyclerView in call log.

Yay, finally!

+ Replace ListView with RecyclerView in layout and fragment files.
+ Change GroupingListAdapter to extend RecyclerView.Adapter instead
of BaseAdapter.
+ Change CallLogListItemViews to extend RecyclerView.ViewHolder.
+ Adapt onBindViewHolder and onCreateViewHolder methods in the
CallLogAdapter.
+ Update/rework tests for related classes.
+ Fix a bug in the GroupingListAdapter, where childCount was not
updated for standalone views, and the previously cached group size
was used instead. Set childCount to 1 for standalone views.
- Removed the idea of creating different views for standalone vs
group vs group headers from the adapters. This logic has not been
used for quite some time and all these functions funneled into
createView/bindView methods anyways, so there is no logical
difference. If we need to create custom views in the future, we can
leverage onCreateViewHolder's viewType parameter.

Bug: 19372817
Change-Id: I1b7289340600609669db22d8bc89265240d0b561
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
db31914c54f90df78af387a8e8849bca4a98510d 10-Apr-2015 Jay Shrauner <shrauner@google.com> Merge "Remove deprecated API use"
1c1d9acc6625a40da0f6e11788f60a59a61c3fd1 10-Apr-2015 Jay Shrauner <shrauner@google.com> Remove deprecated API use

Switch to getPhoneTtsSpannable

Bug:
Change-Id: I1024aea2a766f6ac284bc5207c0e32c29c0cb72f
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
69748953bc507fc8c02ad401f51b7df2efd77688 09-Apr-2015 Andrew Lee <anwlee@google.com> Move some CallLog testing from adapter to fragment.

- Remove custom testing method formerly in the adapter.
- Remove unused expand animate code.

Bug: 19372817
Change-Id: I78489d63ac9c3324cd80f8039d14a41813772e11
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
64c031c7529d98c53e4d917e3bb6e935bbdb6bd6 08-Apr-2015 Andrew Lee <anwlee@google.com> Merge "Remove expand/collapse animations in the Call Log."
07a5e0a68e95bc7e8098bb018004910dc97fa608 07-Apr-2015 Andrew Lee <anwlee@google.com> Move copy of GroupingListAdapter to Dialer app.

+ Copied in from com.android.common.widget. This component is pretty
specific to phone number / call log grouping anyways.
+ Changed CallLogAdapter to reference this GroupingListAdapter
instead of the one in the framework library.
+ Changed CallLogGroupBuilder to reference this adapter too.
+ Copy in tests too.

Next step: change GroupingListAdapter to extend RecyclerView.Adapter.
This will preserve existing grouping logic, despite switching to the
new view.

Bug: 19372817
Change-Id: Ic0186ca5fad06a3ae398b9d8f8006210077149dc
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c6fde8d1b9a4e586ca65b82e9911089a9da14508 07-Apr-2015 Andrew Lee <anwlee@google.com> Remove expand/collapse animations in the Call Log.

- Remove animation logic in CallLogFragment.
- Remove expand listener from CallLogAdapter.
+ Update tests and constructor.

This preemptively removes expand/collapse behavior. While this
will result in a janky short-term experience, this is an incremental
step in shifting to RecyclerView and the new "Card" UI. I figured it
would be most efficient to delete it straight up, rather than coding
in intermediate logic to work with the RecyclerView because it will be
made obsolete by the Cards UI anyways.

In the long run, expand/collapse animation behavior will be
restored once the call log is migrated to RecyclerView and converted
to Cards.

Bug: 19372817
Change-Id: Icbdc7dcb9f2f2223456c29334c826d38917b087a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
74479d448bc39c3534585a627fba603aa89e93ca 03-Apr-2015 Andrew Lee <anwlee@google.com> Create ContactInfoCache from CallLogAdapter.

This pulls code from the CallLogAdapter, with only tweaks to variable
names and comments, to create a ContactInfoCache responsible for logic
pertaining to looking up and caching contact info.

The logic is intended to be unchanged for now, although in the future
it can/should probably be cleaned up sometime.

Bug: 20038300
Change-Id: I60a57b0a665496522a6b51c9e6e41a4fd6dbad1f
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
0d27e1d231226e6ca5e7ed51225f7886598b05b0 02-Apr-2015 Andrew Lee <anwlee@google.com> Merge "Move ContactInfo request classes to package."
5b9ebe2cf5ddeabe0278399e9c547ce46a3f8a99 02-Apr-2015 Andrew Lee <anwlee@google.com> Move ContactInfo request classes to package.

Once a ContactInfoCache is implemented, these will be changed to have
package visibility. This is an incremental step of breaking out and
moving these classes to a "contactinfo" package. The next CL will
actually implement the Cache and have more churn in terms of logic,
while this is more straightforward.

Bug: 20038300
Change-Id: Ie6082b2eeab52e25f861f2459517fff057370f82
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c1fc077754e99bff54bfd7e155ba5c8dd95cf773 02-Apr-2015 Andrew Lee <anwlee@google.com> Move ContactInfo database methods into helper.

Bug: 20038300
Change-Id: Id1636fdf6a1b15ac0c570f484e6f0c05985027e8
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
81c3829f8a9377cb2e93c1fa6d223d223b78f371 01-Apr-2015 Andrew Lee <anwlee@google.com> Move setPhoto logic to CallLogListItemViews.

Bug: 19372817
Change-Id: Icddc1edd2ca1ad040a03726471a19ddc9d434d4d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
25e732727f5bf2c38c40cd353b739742278940c1 01-Apr-2015 Andrew Lee <anwlee@google.com> Move view expand logic to CallLogListItemViews.

Bug: 19372817
Change-Id: I92d9f001155d4a059c89bc4b00abcef4e817f32d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8d7ed4a940826affe390b5f18d6c77e6d17351df 27-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Move view-specific logic to ViewHolders."
30355a89526c84e7b9e980c2f805c55ccfb66906 26-Mar-2015 Andrew Lee <anwlee@google.com> Move view-specific logic to ViewHolders.

There's a lot of logic around inflating/initializing which lives in
the adapter, but only really applies to the views. Move this into
the View Holder for now. This may not be its final resting place,
but in any case this seems like it can be extracted from the adapter.

Bug: 19372817
Change-Id: Ib3436ad4d8e666a8df8cb2f894e71b321ecb68da
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
2d42ccfef1607bbb87c12da6a897056123ee87a8 27-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Move Report-Bad-Data toast to GoogleDialer."
b229fed0212ff7474623ba506d62c6ad118e8348 26-Mar-2015 Andrew Lee <anwlee@google.com> Remove unused getBetterNumberFromContacts method.

I don't think this method has been used for quite some time, and
am uncertain what it was used for originally.

Bug: 19372817
Change-Id: I6abc7cb2699306706dd790247a038d94ed7d1583
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
5387ddb2da7291341663c15375de266f377b07d3 26-Mar-2015 Andrew Lee <anwlee@google.com> Move Report-Bad-Data toast to GoogleDialer.

Bug: 19949319
Change-Id: I32a2217a24915a7d862a1c9d521fc0c45f0ecb68
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f7cef1a00e194ba3ed5b00a6640ea300dd6f97d4 18-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Move add contact intent creation to IntentProvider."
b33c21f85eff3572aab68d5fafe053990e29e700 17-Mar-2015 Makoto Onuki <omakoto@google.com> Merge "Do not cache non-contacts URI in calllog provider. (2/2)"
2cdfa7bca519a98b8f937f3729418d0f5a73e1be 16-Mar-2015 Andrew Lee <anwlee@google.com> Move add contact intent creation to IntentProvider.

This is the more established pattern for creating intents to be used
by call log list item actions.

Bug: 19372817
Change-Id: I62cf5170cf51c4fbec8d1d9910b3fa3380a3dc3e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
14cfa66d6df53303c280194d661c0b32838aa417 14-Mar-2015 Andrew Lee <anwlee@google.com> Delete call log list item extras.

- Remove isCallLog specific code from adapter; now everything will
always be in the call log.
- Remove unneeded adapter bits from ListsFragment; there is now no
shortcut card shown in the lists fragment.
- Remove call log list item extra. We won't bind badges using this
any more. This will be superseded by the actions. Remove
badge-related code in CallLogAdapter.
+ Leaving the add-person icon, since it will be used in the future.

Bug: 19372817
Bug: 19627987
Change-Id: I4db8149761b017e02e89c081930a05f3aafe9606
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
1a3405bc9dc16ffc9c23355ce9981ee7806d219f 10-Mar-2015 Makoto Onuki <omakoto@google.com> Do not cache non-contacts URI in calllog provider. (2/2)

Bug 19546108

Change-Id: I06d3d9326fac25cd8f84e96121e3c40eaa643cc0
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
7c414093c8c66a69cfea77a0ac10c1354f96cb7c 09-Mar-2015 Makoto Onuki <omakoto@google.com> Show corp contacts in call-log...

as wells as the missed-call notification.

Just PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI instead of
PhoneLookup.CONTENT_FILTER_URI.

This CL requires the new column in calllog provider.

Change-Id: I61a2f63bcad102cb8a7e8021483b7dfe254abd95
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
74eb4ecc5df272f681b427760d46deafce8ed0b2 26-Feb-2015 Brian Attwell <brianattwell@google.com> QuickContacts can prioritize phone mimetype. Part2

Whenever using QuickContacts in Dialer, make sure to
prioritize the phone mimetype.

Bug: 18391003
Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
a9a82f52cbcadd0b9a4aafa0c785c0d6af629f1c 06-Feb-2015 Santos Cordon <santoscordon@google.com> Add cache for isVoicemail check.

bindView() gets called many times at dialer startup and layout updates.
Besides being costly, it invokes cross-process TelecomManager methods.
This change addresses the cross-process issues by adding a short-lived
cache to isVoicemail() method invocations.

Change-Id: Ib69c0eb3969a1b7d77c9fd1a2aa6e578a31fb5e9
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8204324a69c4d6b1b95351ab2863b5ddac6fb0a5 03-Feb-2015 Brian Attwell <brianattwell@google.com> Move CallUtil into Dialer. P1/3

CallUtil relies on the a priviliged intent that should only
be used by system apps. Therefore, it shouldn't be used by an
unbundled Contacts app.

I'm leaving one (isVideoEnabled) method from CallUtil inside
ContactsCommon. This way, when the changes that Tyler made
inside m-wireless-telephony-shamu-dev (b/19062133) get
merged back into master both ContactsCommon and Dialer
will be updated.

Bug: 18777272
Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
34b83c9a4d4911615a9822b630a674a8538634f0 16-Dec-2014 Jay Shrauner <shrauner@google.com> Handle SQLiteFullExceptions

Don't crash if unable to update the call log contact info cache because
the disk is full.

Bug:18770948
Change-Id: I4156581df0742d58ed28eeb0c767923e0bc78507
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
1e5325f43c98a92f8bfec1dbd9db3d32a91835e9 01-Dec-2014 Ihab Awad <ihab@google.com> Add Text-to-Speech annotations for phone number displays (3/3)

Bug: 17321294

Change-Id: Icc712da80e25e5a5294986ece055fcffaa558f1e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
1513fec51cbb557685f1976ee2050c73ccdbe036 05-Dec-2014 Tyler Gunn <tgunn@google.com> Updating "Add Contact" to pre-populate full contact info.

1. For recent call entries with a name and phone number, the name will
now also be added.
2. For recent call entries which have complete address information provided
by nearby places, all information except the contact photo will be added. The contact photo is
excluded, as the ContactsLoader would attempt to load the contact photo
while parsing the contact information. On a slow connection this could
cause a noticeable pause while adding the contact.

Bug: 17308163
Change-Id: If2e78bd1257096b344ff2dd266dcdbaeed4f1471
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f15a2837370b0852dffb464843f3f020ebffa94b 21-Nov-2014 Yorke Lee <yorkelee@google.com> Use REDIAL instead of CALL BACK for outgoing calls

Bug: 17325604
Change-Id: Ida625d884088575760e394b2b58a4fc5b7126033
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
6568ffe6f41020ced1824dbc95ecdbb75dcddbac 11-Nov-2014 Yorke Lee <yorkelee@google.com> Lookup badge member variables correctly during bindBadge

If a new call log view is provided, make sure to correctly
find and stash the correct member variables inside bindBadge.

Bug: 18016618
Change-Id: If01a68fc6c468905ab576b1c5927afa308238786
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
dccdf95e813b3e2df28968d6f9fc3699c2a3db1a 05-Nov-2014 Yorke Lee <yorkelee@google.com> Protect against ActivityNotFoundException

Bug: 18247185
Change-Id: I744355ea712f713d5510fa26f141ee2cce7491ff
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
2f44b3c979f292211982608869af3c07cba06620 27-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Send desired size of photo to ContactPhotoManager" into lmp-mr1-dev
141bdce758369c6134cb4f2982a4219eafe2d3c7 26-Oct-2014 Yorke Lee <yorkelee@google.com> Send desired size of photo to ContactPhotoManager

This allows it to correctly determine if the photo should be treated
as a thumbnail (and thus cropped into a circle), and also saves on
RAM since the full sized bitmap doesn't need to be decoded.

Bug: 17327890
Change-Id: Ia92cfd9005ea2060608284e3c1f6a539bdd6da72
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
2ff08a8f8d4762ab5d0aebb0b69079f0b8d20b3e 25-Oct-2014 Yorke Lee <yorkelee@google.com> Remove CallLogListItemView

CallLogListItemView is a custom view that might have done
something once, but doesn't anymore. It makes the code more
complicated to read and requires a lot of casting that does
nothing at all.

Change-Id: I53efb35367d748aa3d164d0fb56686175967c90e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f663fa083983a9b417f642e246d0873e0c424bb9 14-Oct-2014 Nancy Chen <nancychen@google.com> Make a general call to voicemail when calling back from call log.

A voicemail call log entry is saved with the number of the voicemail
that was called. In the multi-sim case, however, we don't want to call
back to the voicemail number of the original call because it might be
the number of a different phone account.

Bug: 17925501
Change-Id: I528c4039cc227608e040ae71b6b10488376fb357
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
e80d62229bb11a92f0db8d4e4bac6533bbed9b66 09-Oct-2014 Nancy Chen <nancychen@google.com> Enable use of phone accounts for voicemail info display.

Call the "isVoicemailNumber(subId, number)" method instead
of the one with just the number. This is because we need to check
whether a number is the voicemail number for a specific phone account,
otherwise the UI would never correctly display "voicemail" for the
non-default SIM.

Bug:17925501
Change-Id: If1d6cb1acfcb570aca5e639858af8804bac202c0
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
55733814f213809baaa8eaa8984ff026bdb08b4e 01-Oct-2014 Anthony Lee <anthonylee@google.com> Fix HTTP request to a report bad caller ID entry in the call log (1/2)

A few things needed to change to fix this bug.
1. Add object ID to ContactInfo and make sure that it is persisted
2. Adding a new row means migration from older versions of DBs
3. Fix logic that determines if we can report a given call log entry since
the strategy of using isExternal() is not valid. UI impact.
4. Fix the HTTP request that is generated to include a valid object ID
intead of using the source ID.

Bug: 17692726
Change-Id: If541fea963837118b7466b6c59f453103cdbdc4a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
4a5a1bd99ef5e7c3571f299a6c979000bc6a0f74 24-Sep-2014 Nancy Chen <nancychen@google.com> Remove the "Last Week" heading for call history.

The phrasing "Last Week" was confusing phrasing, because it included
anything from 2-7 days from today. Removing for now.

Bug: 17632092
Change-Id: I05ff691c8cc3b20d3d61fae8d7ee0c5c134f4838
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9dc924c8bcc0bc8d996452e9ce3215b5f064962e 12-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I44d6d6546cac53232e4e2be0ebe0391d02411309
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
ede67ec7813fb2c6fcda485adf82f11b55e3562c 12-Sep-2014 Jay Shrauner <shrauner@google.com> Fix cursor leaks

Bug:17472228
Change-Id: Ia34252e1a4e0ba0193c8a13006121972e889d27d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
03610993bf2adf12a6962c32851095551ffd0043 08-Sep-2014 Yorke Lee <yorkelee@google.com> Replace Calls.FEATURES_NONE with 0 (2/4)

Bug: 17253963
Change-Id: I9e9e56cdf4c9a60ac1e047bef0eba2ba0c8f10fb
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
6b88e54849d5563386d51f5d338e37fc1e4b459f 29-Aug-2014 Yorke Lee <yorkelee@google.com> Fix layout inconsistencies due to add to contacts shortcut

Use the contact uri (which is stored in the call log and does not
depend on performing an asynchronous lookup) instead of the lookup
key to determine whether or not to show the add to contacts
shortcut.

Bug: 17316578
Change-Id: Ib7ba14eaa6eeeb42c0aea784ee663f673f67040b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
59dc8dbf566e6900c81feec1756014d2a2fd0843 25-Aug-2014 Tyler Gunn <tgunn@google.com> Merge "Hiding VideoCall button in call log when video is not available." into lmp-dev
eb141e078353a2e3a997001afd1aa16a88da429b 21-Aug-2014 Andrew Lee <anwlee@google.com> Add "add to contacts" actionable item to shortcut card.

+ This appears for contacts with no lookup key. This means that it
will show up for businesses too; even though we match a name,
there's no lookup key.
+ Remove missed call information which used to be shown below
the shortcut card, but no longer is.
+ Make alignment of this call log list item more pretty.
+ Add tinted person_add drawable for this actionable item.

Bug: 17186220
Change-Id: Iabcfa73c2ffeeb0bb24127ef74e85e612be51b9e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
ac7f2354a58bac2099b6a9442f6c8388fcf1c148 22-Aug-2014 Tyler Gunn <tgunn@google.com> Hiding VideoCall button in call log when video is not available.

Bug: 17179079
Change-Id: Ice1cc4b83dd740b751414075b0ea96fb2ab201b3
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
0927dc6ef623bec56415d087885f6d2607da35f7 21-Aug-2014 Andrew Lee <anwlee@google.com> Pass application context into isVideoEnabled usages.

Bug: 16211386
Change-Id: I0bda040bd6cd5c55ee7c708044befaad8977d460
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f42ea913f3569e0bef2ae18404b29610f368cc77 19-Aug-2014 Yorke Lee <yorkelee@google.com> Expand transcription view when call log item clicked

* Expand and collapse voicemail transcription view as necessary
when tweaked
* Modify call_log_list_item layout slightly to pin the photo
at the top of the call log item

Bug: 16320164

Change-Id: Ib0d84dd77065dce86339c852313adb94b34ba5aa
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
b54d7e75f6c2f4b6a20d837f1fb60df2417563da 02-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Automatically expand call log row when it gains accessibility focus" into lmp-dev
b359699a1dd96a4581a47b11ef2a85ec4a8a9433 30-Jul-2014 Yorke Lee <yorkelee@google.com> Automatically expand call log row when it gains accessibility focus

Bug: 15593107
Change-Id: Idfa03f8256d2ae29a4221a5e8d51ca8ddbafbfb0
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8f7c4368817a17727b2132d399d0895e33f67a95 28-Jul-2014 Nancy Chen <nancychen@google.com> Do not call back from original sim, ask everytime or default.

Removed feature to call back from original SIM. When user calls back, it
will either call from default or ask every time depending on system
setting.

Bug: 15473965

Change-Id: I2ea33732571b6849fbe0bd743bb0535d9eb8217e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
1970263aad3e26c0e36dbe3783bef5d9f0ff29f0 25-Jul-2014 Nancy Chen <nancychen@google.com> Add account label to call details if appropriate

We will be adding the account label field to call details if there is
more than one account to disambiguate. Otherwise this field will be
hidden.

Bug: 16488229

Change-Id: Idb03d09d63372655504a5f9178e6f2e408aefb88
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8cd9423bd04584acbcbf178bf6a1c1953debb8da 23-Jul-2014 Yorke Lee <yorkelee@google.com> Add voicemail transcriptions to Dialer

* Display voicemail transcriptions in the call log and call details
activity in the Dialer
* Fix a bug in CallDetailActivity that would result in multiple instances of VoicemailPlaybackFragment being added on rotation. Now, reuse the same fragment
if it is already present in the FragmentManager, to avoid creating new ones
* Simplify some test and ctor logic in PhoneCallDetails to reduce the pain
of adding new fields into PhoneCallDetails
* Simplified playback_layout.xml to remove unnecessary parent LinearLayouts

Bug: 16320164

Change-Id: Ie68acc9058aace49d8e64f44a0128de0b6a3f842
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
b2eebafbc1f1e26b5178b2858ca335467b4bc341 21-Jul-2014 Nancy Chen <nancychen@google.com> Enable icon selection in call log

Originally the call log was not hooked up with the PhoneAccount API,
this change hooks that part up.

Bug: 15473965

Change-Id: I96bdde927473abcdf7493573be29bf4979cf2696
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
a2eadf3d68d4f6d0a948d37bc48e930115723ce0 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccountMetadata to PhoneAccount

Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c329bfb6d47f20237d22e13297d5bbb72e612919 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccount to PhoneAccountHandle

Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
0d8019cf7cb048e5da044559460e08c5284d8f48 18-Jul-2014 Chris Craik <ccraik@google.com> Replace shadow workaround with a different one

bug:15023558
Change-Id: Ie85b281ff77694874953ff88297e0d034560c82b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9686330691f1216edff0ffa779138bda43388c47 15-Jul-2014 Sai Cheemalapati <saicheems@google.com> Added a dialog to confirm caller id reporting (1/2).

Database and call log are now updated when user confirms.

Bug: 11150383
Change-Id: Ic716e92bcb2280c1d352bd2232bda516e83349b2
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
24a6e3c132db468143df40baf87cfff28e2d91f2 16-Jul-2014 Sai Cheemalapati <saicheems@google.com> Merge "Revert "Added a dialog to confirm caller id reporting."" into lmp-dev
c44a26cd4de71485047ab3b6c68c9250c02bb27a 16-Jul-2014 Sai Cheemalapati <saicheems@google.com> Revert "Added a dialog to confirm caller id reporting."

This reverts commit cee1e65f0c411e35c4521922c3e9def13e01fe64.

Change-Id: Ic50fd443856ea7e22714423939ac782cd4e89276
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
21f69faccff760ac630eb5c7363b4f704c4b054e 16-Jul-2014 Sai Cheemalapati <saicheems@google.com> Merge "Added a dialog to confirm caller id reporting." into lmp-dev
cee1e65f0c411e35c4521922c3e9def13e01fe64 15-Jul-2014 Sai Cheemalapati <saicheems@google.com> Added a dialog to confirm caller id reporting.

Database and call log are now updated when user confirms.

Bug: 11150383
Change-Id: Iafaca2172f2d44a6edf8514f7d900888dab9cf0e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
5619f2ed87cb207352c0ff5578348baeb69ee202 15-Jul-2014 Tyler Gunn <tgunn@google.com> Various call log / call details video call changes.
Requires cl/501841.

Call log:
1. Add video call affordance.
2. Add accessibility text for calls, video call afforance.
3. Fixed unit test

Call details:
1. Showing video icon when a call had video.
2. Changing call headings to indicate they were video calls.

Bug: 16013879
Bug: 16013344
Bug: 16013684
Change-Id: I53b5bf9b0b1a63f9d119318d59f690d310cca7c8
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
434dbcc2f581619f79a691e1a39c5e69003a9d16 15-Jul-2014 Sai Cheemalapati <saicheems@google.com> Merge "DO NOT MERGE Added report button to UI and database." into lmp-dev
b77bf5df2b866dd40e330b7c2dedee4a1d51fc78 10-Jul-2014 Sai Cheemalapati <saicheems@google.com> DO NOT MERGE Added report button to UI and database.

It toasts when clicked for now. The database is not updated when it
is clicked yet.

Bug: 11150383

Change-Id: Ifd588bdfb36dd8a96977a870071a064726f6e669
(cherry picked from commit 3eae4825ee9a29bd43c9b01d3cbf92de6ad3eb11)
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9134e25d7ab8eb687a36ce7ba199e66f44550fdd 09-Jul-2014 Ihab Awad <ihab@google.com> Implement multi-SIM capabilities (3/6) [DO NOT MERGE]

Bug:16292368
Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e
(cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0)
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8b0e858d5b4c50813dbe2b5c244e7013814b23ec 10-Jul-2014 Tyler Gunn <tgunn@google.com> Adding support for video call icon and data usage in call log.

Bug: 16013684
Bug: 16015261
Change-Id: Ie75443d641c1e09a5772bb618aba55de8583716b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
1d1bd0da0b32a5b8cb1c7c5585acccb180b19849 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (3/7)

Change-Id: I866e9d4f629a2b23acb3d3d3f2baeb0a674522f7
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
87ba489564b25d4a64c9faaeafea46e2f72d8933 12-Jun-2014 Nancy Chen <nancychen@google.com> Add icon indicating subscription in call log/call history

Display an icon in the call details showing which connection provider
(subscription) is responsible for the call.

Bug: 15473965

Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
7d20f8273886411ffc864231d59f780e450de3db 20-Jun-2014 Yorke Lee <yorkelee@google.com> Fix Dialer tests

Fix Dialer tests and also wrap all startActivity calls that have
the potential to fail with a catch block for ActivityNotFoundException

Change-Id: I02ce4b985eeb0e3e607b8008a333e02168acd378
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
746dba885dc50c9f723456b01cfc7dbfcc9a49b0 12-Jun-2014 Tyler Gunn <tgunn@google.com> Prevent existing cached normalized numbers from being overwritten.

Fixed case where if a number is not in your contacts and it has a cached
normalized number in the call log, viewing the call log will delete the
normalized number.

Bug: 15591755
Change-Id: I7111ca6a2aacaebb0adfb15ccb5e6dc0792e2016
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
aaeea64a83bdd73665f5999c3645af35e341139c 11-Jun-2014 Andrew Lee <anwlee@google.com> am a9a75dc1: Merge "UI improvements on tabs, recent expanded card, speed dial grid." into lmp-preview-dev

* commit 'a9a75dc1956f4b6a3d3527b7b9e204acbb316b68':
UI improvements on tabs, recent expanded card, speed dial grid.
1e273313ff938ba0c7294dade433736d3fc5876b 10-Jun-2014 Tyler Gunn <tgunn@google.com> Adding "today" and "yesterday" string resources.

These replace a previous method which relied on buggy methods to try and
get the today and yesterday literals from the locale layer using a date
format method.

Bug: 15541650
Change-Id: I6ff6dd133904f21c8b41b51e68db465c34186719
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
b2687dd09eef2fc1aaf31ea4a3edf523677108a8 06-Jun-2014 Andrew Lee <anwlee@google.com> UI improvements on tabs, recent expanded card, speed dial grid.

- Changed tab weight from bold to medium.
- Darkened the lists background by ~2% black to improve contrast
for the expanded call log items.
- Fixed colors on the expanded call log item, back to white.
- Some cleanup to store constant properties as member variables
in the CallLogAdapter.
- Fixed vertical margins on the speed dial favorite square views.

Bug: 15470880
Change-Id: Ia2583f527e1fc91af08e049312eaa724176b761d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c987e00fa84f8997c07e8cb2d413897ae1d41b14 29-May-2014 Andrew Lee <anwlee@google.com> Adjust call log text padding.

- Set elegant text height to false on the name and location/date.
- Add margin below the name TextView.

Bug: 15196725
Change-Id: Ia1735cb75194ab8b0418e138f4f11ec17ae626db
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
7d6a2cc5758909d3ba959f3cc0b8771e444a3c27 27-May-2014 Andrew Lee <anwlee@google.com> Merge "Changing the call log collapse animation for previous item so it happens at the same time as the expansion of another row; this eliminates the need for calling notifyDataSetChanged on expand/collapse." into lmp-preview-dev
68e771378889a479a80aac29a9ec2136b7ef27b6 23-May-2014 Tyler Gunn <tgunn@google.com> Changing the call log collapse animation for previous item so it happens
at the same time as the expansion of another row; this eliminates the need
for calling notifyDataSetChanged on expand/collapse.

Bug: 13962594
Change-Id: I8f67de49c7cc6382acb0fd26e887d4cdc8e5d6e3
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f3f706aeeea69fb2ac4898c4038f9839f456f39c 23-May-2014 Tyler Gunn <tgunn@google.com> Cleanup of call log entry horizontal padding and RTL support. DO NOT MERGE

Bug: 15165669
Change-Id: Iceba7fdfcecb79c3d1ef30505e27b5274da67111
(cherry picked from commit b2a0168c53ef96ac26a2abb8dcb2c34b49c9becc)
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
13f6fd048f0cdc26e9dc6b78a02515e72fff2e27 22-May-2014 Andrew Lee <anwlee@google.com> DO NOT MERGE. Tidy up call log shadow/touch interactions.

- Constrain the recents list footer ripple to its dimensions.
- Eliminate bottom margin on the call log list items.
- Changed translationZ on expand to apply to the call log list item
instead of just its primary action view.
- Adjust the outline clipping so that a shadow doesn't appear under
the day group header, now that the translation is applied to the
entire list item.
- Instantiated a number of fixed property values in onCreate() in the
CallLogFragment, instead of whenever they're needed.

Bug: 15165669
Change-Id: I5ed81ae49fb0c3f6eed360f247c1fd67278a628c
(cherry picked from commit 6e765f9a71b450809c4916a5d5562cdc1372a39a)
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9138834059797469f73390c9faa71ce98b4434c1 21-May-2014 Tyler Gunn <tgunn@google.com> Removing the delete button from call log entries.

Bug: 13962594
Change-Id: I59ee9badc239f4ce3a81320cb0e801af973707a5
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
8ef8020b8b792026a8dd15e029055f7d5e2d48f6 21-May-2014 Tyler Gunn <tgunn@google.com> Changing expand/collapse so that only a single row is expanded at once.

Bug: 13962594
Change-Id: I2a553e65b447d4b944e20ee420da3a726ec30aeb
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
cf5e001120916deb770ea65ae55730e456f92137 16-May-2014 Tyler Gunn <tgunn@google.com> Adding call details affordance to call log.

Bug: 14876142
Change-Id: Ic4e806153156489473aeff91dbb9380302431ace
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
4dfd7129ab04853504fe0c050e982db7b178b643 15-May-2014 Tyler Gunn <tgunn@google.com> Adding day group headings in the call log which group call log entries
under 4 headings, "Today", "Yesterday", "Last week", "Other".

Bug: 13962594
Change-Id: I6f7cfb93ca03bbbe0c3e4736efb3b8a4244c1dba
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
654df8fbbc7703c24aec687de902e2c72ba343dd 13-May-2014 Yorke Lee <yorkelee@google.com> Animate call log expand/collapse
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
7be92c925c842d45aa14f4bb7edc2f64f528b58b 13-May-2014 Tyler Gunn <tgunn@google.com> Fixing bug where recycled call logs rows that were previously expanded but
are not expanded on rebind appeared expanded even though they were not.

Refactored code to enable better re-use of expandeOrCollapseActions.
Bug: 13962594

Change-Id: Ife8355dcce44fc258334516ad81797af987f83f1
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c50fcea04955541556dbf9df67810956cef4918c 12-May-2014 Tyler Gunn <tgunn@google.com> Merge "Removing highlighting of missed calls and voicemails in the call log. Also fixing some broken unit tests."
d0715acdfc1aee0c20950741dc15d30abd18d2f2 12-May-2014 Tyler Gunn <tgunn@google.com> Removing highlighting of missed calls and voicemails in the call log.
Also fixing some broken unit tests.

Bug: 13962594
Change-Id: I3ca2d72b3013b6324da19717dbc984f3e7e576e2
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
6b2221cb1f83e3b5a2a08f9723702c9cda165ed5 08-May-2014 Tyler Gunn <tgunn@google.com> Setting call log item elevation and background color when items are
expanded/shrunk per redlines.

Bug: 13962594
Change-Id: I5614a896c06bd29ddc6d3996a1563a0547310e6a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
146a4cdf57f0d4d0cd85e808f1df2bdea639b24c 06-May-2014 Tyler Gunn <tgunn@google.com> Adding support for expandable call log entries.

Bug: 13962594
Change-Id: I19a4a65dce922619df0a709293ca291c345c8be7
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
cb481aa46e012d1f9f147919b346fbfb16624dab 29-Apr-2014 Yorke Lee <yorkelee@google.com> Use circular support in ContactPhotoManager

Bug: 13747208

Change-Id: I39932fc22ab13317430c13034c4c4c2725662999
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
a5804f5b62bd87a0c8a35d7651a6862ecc1f220b 06-Mar-2014 Yorke Lee <yorkelee@google.com> Fix for letter tile avatars not displaying properly in calllog

Renable an accidentally disabled line of code which would retrieve
the lookup key from the lookup URI, allowing letter tile avatars
to display with the correct color and letter.

Bug: 13341898
Change-Id: Ic65352053234e37f580aa44d9ed459755c3913f1
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
56cb0efa5eda1670077e66fc0e8c79478d0c1c67 21-Feb-2014 Yorke Lee <yorkelee@google.com> Use new ContactPhotoManager APIs for letter tile avatars

*Modify the following uses of ContactPhotoManager.loadPhoto in the following
classes to include a DefaultImageRequest, populated with the contact's
display name, lookupkey, and contact type as necessary

CallDetailActivity
CallLogAdapter
PhoneFavoriteTileView

*Add utility methods to ContactInfoHelper, to parse a lookupUri for a lookup
key, as well as determine whether or not a contact is a business contact,
from its sourceType field.
*Add a sourceType field to PhoneCallDetails which can be used to track
whether or not PhoneCallDetails belongs to a business contact
*Add a lookupKey field to ContactInfo

Bug: 13101785
Change-Id: If339a9c038f92a0212f8f8b45b5e3cc5f6442562
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
45ed3b5932ed590b45235d7b2befa736a95e7f75 03-Feb-2014 Tyler Gunn <tgunn@google.com> Call History Affordances Swap

1. Swapped the intents for the primary view
2. Changed the icon for the secondary action button
3. Added a vertical divider line to separate the secondary action button from the primary view
4. Cleaned up the accessibility text

Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
24ec319f8d410be8a1923c4033f927165876cbab 19-Nov-2013 Yorke Lee <yorkelee@google.com> Rename PhoneNumberHelper in Dialer

Rename PhoneNumberHelper to more appropriate PhoneNumberDisplayHelper

Change-Id: I2c03f5cbb04c1e03f1fc1e0051a1cea641160dca
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
934d3ee3052cfdd994e31ab2bcf00747fd9776d8 22-Oct-2013 Yorke Lee <yorkelee@google.com> Fix call log jank

Restore previous jank-fix while ensuring that contacts with images
not in the ContactProvider are still updated

Bug: 11289654
Change-Id: I89723bd08c9dc83731b7a7555dc0364c74faa9a4
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
643e78532e5d40ca62e6545855f847e26eaffa4e 08-Oct-2013 Chiao Cheng <chiaocheng@google.com> Check for closed cursor to prevent crash.

No-op if click detected while cursor is closed.

Bug: 10937133
Change-Id: I702e30c91a0c76cd36204a4c689155e49b775c1e
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9fd02a6742c8e9139a03d80bacca360238be11bf 30-Sep-2013 Chiao Cheng <chiaocheng@google.com> Turn on reverse lookup by default.

- Adding new caller id is enabled message when the call short cut is displaying
a reverse lookup result or if the number is unknown.
- Added dismiss "X" button which turns of the badge forever.
- Fixed issue where main screen was cutting off add contact button when few
favorites are present.

Bug: 10956658
Change-Id: Iea298d41b2ad6c3f63bc5580dc54fa0dc81d8c52
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
62fc6bb4eb37bdec85f7835224e6ca7384dff5a3 30-Sep-2013 Yorke Lee <yorkelee@google.com> Fix incorrect photouri on call shortcut

Bug: 10972458
Change-Id: Ibae824d24f72255f7d2e4c3dfa6f38f001f56f76
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
a8dab0a58e3145adfc27f75f563732e8589674ed 27-Sep-2013 Yorke Lee <yorkelee@google.com> Fix for private numbers in call shortcut being dialable

Call log views were being recycled and reusing the tagged intent
in the recycled view.

Bug: 10953465
Change-Id: Iff1d2276622bda05486efd092abac1a55b7441f1
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
c5b6a693d4773214ff8d3fcfa43d0a29581bb886 25-Sep-2013 Chiao Cheng <chiaocheng@google.com> Adding missed call badge.

Bug: 10861718
Change-Id: I3a889a71cff7abac578da83d09dd7af23f3f88ca
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
b4e70627beed03f6dc4038d536f843e42343bf08 20-Sep-2013 Chiao Cheng <chiaocheng@google.com> Merge "Perform reverse lookup for call shortcut." into klp-dev
f73d2a97203261016e6c3f35ab8ab3a4a4f4c0b7 20-Sep-2013 Chiao Cheng <chiaocheng@google.com> Perform reverse lookup for call shortcut.

When a user turns on the feature for the first time, do a lookup on the call
shortcut.

Bug: 10822944
Change-Id: I75801a7e47ea10261f54068fc29104281f902f6f
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
005183fff98e2f96bc4a73edd1c985ff249bde58 20-Sep-2013 Yorke Lee <yorkelee@google.com> Don't allow calls to undialable numbers

Bug: 10842865
Change-Id: Id48ffd5cb824f5dc1c84bfe938560a8edecb261d
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
fb0a934ad90f1855787563eb80f2c8fff7f640ac 14-Sep-2013 Chiao Cheng <chiaocheng@google.com> Follow up on build break to fix unit tests.

Change-Id: I82b7fa50601f6dad60038fd1b9c5f0aad2f374f5
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
e6933be00d2ecc266612a374a62e05352937408e 13-Sep-2013 Chiao Cheng <chiaocheng@google.com> Changes to detect whether a call is voicemail.

To determine whether to show discovery for caller id.

Bug: 10723396
Change-Id: I924e9a8c05dced4f1ea239c0db71c131bb662da7
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
704acc087ce359295475a46695c2821c55778344 10-Sep-2013 Chiao Cheng <chiaocheng@google.com> Add enable reverse number lookup link to call card.

Bug: 10525344
Change-Id: I6f01110e76222a2558374426675e285cfca5801b
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
a7c563200f454bc1f91aa4a833aad14349033f38 05-Sep-2013 Yorke Lee <yorkelee@google.com> Add content description for call log quick contact badges

Bug: 10446454
Change-Id: Ia40f92bc0fbc3f8d9cddd5aa0efe084b2300b6d8
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
173ec96476278f0d6aa147d31a60aa3e419e5ca3 30-Aug-2013 Jay Shrauner <shrauner@google.com> Add contacts to the cache when dialed

Add GAL or local search contacts to the cache when dialed.

Bug: 10609551
Change-Id: I787e0f2e1fe458a7f5518241823493333d9ade7c
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
034a2b329e469bf6888fbbcf91992f974015c2a8 27-Aug-2013 Yorke Lee <yorkelee@google.com> Use contacts cache in call log adapter

Bug: 10490038

Change-Id: I4c7fc5094f76dfaaa321bc69d595f37bb72f87ad
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
7030a12a15e565521ffb220c00a0251e47bd3a93 14-Aug-2013 Christine Chen <christinech@google.com> Change primary actions of the CallLog items.

- When the CallLog item is in the CallLog fragment, the primary action
remains to be opening the call detail page.
- When the CallLog item is in the Favorite fragment, the primary action
changes to be calling the number directly. The secondary action is
hidden unless it is to play a voicemail.

Bug: 10308694
Change-Id: I28ca7aa783bcca35eb8b41f6e8508d08062dd253
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
fb585079cc4c522c27f6dd6bf03fd296535960f3 04-Aug-2013 Yorke Lee <yorkelee@google.com> Code cleanup for call log related items

Change-Id: I2aa0458e1fb74abaea60a02f430a4e413dfed365
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
dfb2eee7d98f8540fd1614db66bb03e8e1f3a26a 27-Jun-2013 Yorke Lee <yorkelee@google.com> Initial commit of all new dialer activities, layouts and styles

As far as possible, this change does not modify any behavior/look
of the existing dialer. All modifications to classes/layouts/style attributes
that would affect functionality of the old dialer are instead done in
separate new files.

Added new versions of all activities, fragments, layouts, menus
and resources that have been rewritten or modified.

The activities do not have intent filters yet in order to not interfere
with the existing dialer.

Added some new values in colors/styles/dimens for the newly added
layouts.

Added NewCallLogActivity to separate the CallLogFragment from
DialtactsActivity. All call log and voicemail entries are now presented
in a separate (New)CallLogActivity.

IntentProvider.getCallDetailIntent now takes a cursor instead of an
adapter for more flexibility.

Add OnListFragmentScrolledListener interface for DialtactsActivity
to receive callback when one of its children fragment is scrolled.

Added slide in and slide out animations for DialpadFragment.

Add slide up and hide animations for search view

All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment.

Added call log adapter into NewPhoneFavoriteMergedAdapter.

Rewrote layout of DialpadFragment to show up as a fragment partially overlaying
the screen.
Removed some unused code in DialpadFragment (smart dialing, menu handling)

Add fragments and adapters for SmartDial.

- Update Dialer database to support highlight masking and record contact
data Uri, as well as photo uri
- Add a fragment and adapter for smart dialing
- Add SmartDialCursorLoader to load SmartDial results.
- Typing in the dialpad now returns smart dialing results instead of regular
search results

QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use
light theme instead of the the default dark theme.

Removed all redundant call log filter and contacts to display filter code

Moved Dialer specific UI list-related classes to the Dialer package

Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
f517e7bb367d1ed749b500959d0a0a1ba8c3d5e5 03-Jul-2013 Christine Chen <christinech@google.com> Remove CallLog New and Old sectioning.

Bug: <5751629>
Change-Id: I1689fa10f285bc66fc69b6a9b9da139ce5461d83
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
719a7adde25e0a717816b00668c16c3a1e3c5518 31-May-2013 Jay Shrauner <shrauner@google.com> Use new CallLog number presentation column

Switch to using new number presentation column in the CallLog table and
discontinue using special phone number strings in CallerInfo. Needed for
unbundling.

Bug:6948882
Change-Id: Ibf27ea55cee783c4530101e4e228198e245e6684
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
35071c06d1587942f5a66c8f12e6247e8f904d26 16-Oct-2012 Chiao Cheng <chiaocheng@google.com> Removing contacts dependencies from CallDetailActivity.

Bug: 6993891
Change-Id: I3ef54efc0ff92367ea4f9b68c1629a99d90ff22c
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
9554500572ba82fbd7adb0a1637206ef870ef09e 15-Oct-2012 Chiao Cheng <chiaocheng@google.com> Changing com.android.contacts.R to com.android.dialer.R.

Bug: 6993891
Change-Id: I921ec71fffbd4d4a058bab29ded8a6ac62adfb70
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
91197049c458f07092b31501d2ed512180b13d58 24-Aug-2012 Chiao Cheng <chiaocheng@google.com> Moving more classes from contacts into dialer.

- These classes are only used by dialer code.
- Fixed import order.

Bug: 6993891
Change-Id: I7941a029989c4793b766fdc77a4666f9f99b750a
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java
94b10b530c0fc297e2974e57e094c500d3ee6003 18-Aug-2012 Chiao Cheng <chiaocheng@google.com> Initial move of dialer features from contacts app.

Bug: 6993891
Change-Id: I758ce359ca7e87a1d184303822979318be171921
/packages/apps/Dialer/src/com/android/dialer/calllog/CallLogAdapter.java