From e8d7752e920b6f31874a770c9ddcbbaaee0627cb Mon Sep 17 00:00:00 2001 From: Android Dialer Date: Mon, 16 Oct 2017 11:33:58 -0700 Subject: Keep promo state on rotate Promo was being collapsed because rotate causes list to be scrolled at IDLE state. Make the drag more explicit by including the fastScroller drag state instead manually verified fast scrolling still minimizes promo and rotating while promo is expanded keeps it expanded Bug: 67670326 Test: ContactsPromoFragmentTest PiperOrigin-RevId: 172352966 Change-Id: Iab5438501db1d54b7ffac3339faecde0256a3632 --- java/com/android/dialer/app/DialtactsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/com/android/dialer/app/DialtactsActivity.java') diff --git a/java/com/android/dialer/app/DialtactsActivity.java b/java/com/android/dialer/app/DialtactsActivity.java index 791a710a9..56e0a95e5 100644 --- a/java/com/android/dialer/app/DialtactsActivity.java +++ b/java/com/android/dialer/app/DialtactsActivity.java @@ -900,7 +900,7 @@ public class DialtactsActivity extends TransactionSafeActivity } @Override - public void onContactsListScrolled(int scrollState) { + public void onContactsListScrolled(boolean isDragging) { // intentionally empty. } -- cgit v1.2.3