diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-05 17:57:40 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-06 11:08:29 -0700 |
commit | afdd8b997dc3e82a81fa9605e05428f51464842e (patch) | |
tree | e91e6537a31206bb27ff3932ea7d194cf7667c40 /src/com/android/dialer/CallDetailActivity.java | |
parent | 7b127d43de0de29c27a9db19f0a7e792ac678c05 (diff) |
Convert caller information into list header.
this allows us to scroll the header with the rest of the screen,
instead of having it pinned to the top, as it is currently.
Bug: 24109819
Change-Id: Ic440bc18d31d196493a86130e06d954c453c9146
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index c8a5356a6..a43ec3edc 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -231,6 +231,9 @@ public class CallDetailActivity extends AppCompatActivity mVoicemailUri = getIntent().getParcelableExtra(EXTRA_VOICEMAIL_URI); + ListView historyList = (ListView) findViewById(R.id.history); + historyList.addHeaderView(mInflater.inflate(R.layout.call_detail_header, null)); + mQuickContactBadge = (QuickContactBadge) findViewById(R.id.quick_contact_photo); mQuickContactBadge.setOverlay(null); mQuickContactBadge.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE); |