Merge "Fix keyboard navigation work in Settings home page" into rvc-dev am: 8a2eb5e8bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11686086 Change-Id: I0f08b2fd1008a50344d6078148247344c2a755b0
This commit is contained in:
@@ -90,5 +90,9 @@ public class SettingsHomepageActivity extends FragmentActivity {
|
||||
// The top padding is the height of action bar(48dp) + top/bottom margins(16dp)
|
||||
final int paddingTop = searchBarHeight + searchBarMargin * 2;
|
||||
view.setPadding(0 /* left */, paddingTop, 0 /* right */, 0 /* bottom */);
|
||||
|
||||
// Prevent inner RecyclerView gets focus and invokes scrolling.
|
||||
view.setFocusableInTouchMode(true);
|
||||
view.requestFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user