Merge "Fix keyboard navigation work in Settings home page" into rvc-dev am: 8a2eb5e8bc am: 5520cb90ac am: 90b6007026 am: bb4d54020f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11686086

Change-Id: Ia5f3ae9b95cecdc22683505c62c1b19c70179b2a
This commit is contained in:
TreeHugger Robot
2020-06-08 06:12:36 +00:00
committed by Automerger Merge Worker
2 changed files with 9 additions and 4 deletions

View File

@@ -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();
}
}
}