Loading src/com/android/contacts/common/list/AutoScrollListView.java +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.contacts.common.list; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.ListView; Loading Loading @@ -114,4 +115,15 @@ public class AutoScrollListView extends ListView { smoothScrollToPositionFromTop(position, offset); } } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); // Workaround for b/31160338. if (android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N || android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N_MR1) { layoutChildren(); } } } Loading
src/com/android/contacts/common/list/AutoScrollListView.java +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.contacts.common.list; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.ListView; Loading Loading @@ -114,4 +115,15 @@ public class AutoScrollListView extends ListView { smoothScrollToPositionFromTop(position, offset); } } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); // Workaround for b/31160338. if (android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N || android.os.Build.VERSION.SDK_INT == Build.VERSION_CODES.N_MR1) { layoutChildren(); } } }