summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/voicemail
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2018-01-17 11:23:05 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-17 14:38:43 -0800
commitc1717ac3a92016cdfc80b5e61413ecfc41b45298 (patch)
treed254e4d93e9af13b6d750985c8023b17a95f6cb1 /java/com/android/dialer/voicemail
parentb68ae2c635fe039463499c03be5e71dc2d046b7d (diff)
Take voicemail alert position into account for "older" header for NUI Voicemail Tab
The older header must take into account and be offset when there is a voicemail alert being shown. Bug: 71700117 Test: N/A PiperOrigin-RevId: 182243160 Change-Id: Ib38ba82e75fedf9a2939078447e4791f5239524c
Diffstat (limited to 'java/com/android/dialer/voicemail')
-rw-r--r--java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java
index 32c5b6991..86d386050 100644
--- a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java
+++ b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java
@@ -150,7 +150,7 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder>
this.olderHeaderPosition = Integer.MAX_VALUE; // Didn't find any "Older" rows.
} else {
this.todayHeaderPosition = Integer.MAX_VALUE; // Didn't find any "Today" rows.
- this.olderHeaderPosition = 0;
+ this.olderHeaderPosition = 0 + alertOffSet;
}
} else { // There are no rows, just need to set these because they are final.
this.todayHeaderPosition = Integer.MAX_VALUE;