From c1717ac3a92016cdfc80b5e61413ecfc41b45298 Mon Sep 17 00:00:00 2001 From: uabdullah Date: Wed, 17 Jan 2018 11:23:05 -0800 Subject: 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 --- java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java') 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 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; -- cgit v1.2.3