Fine tune the homepage scrolling behavior
Scroll to the highlight position before showing homepage. Bug: 199017944 Bug: 204946469 Test: visual Change-Id: I11708f42180a3af22855ac7b5f53460f737ed208
This commit is contained in:
@@ -201,7 +201,8 @@ public class TopLevelSettings extends DashboardFragment implements
|
||||
|
||||
@Override
|
||||
protected RecyclerView.Adapter onCreateAdapter(PreferenceScreen preferenceScreen) {
|
||||
if (!ActivityEmbeddingUtils.isEmbeddingActivityEnabled(getContext())) {
|
||||
if (!ActivityEmbeddingUtils.isEmbeddingActivityEnabled(getContext())
|
||||
|| !(getActivity() instanceof SettingsHomepageActivity)) {
|
||||
return super.onCreateAdapter(preferenceScreen);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user