Merge "Fix the scrolling problems in homepage" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-05 03:22:26 +00:00
committed by Android (Google) Code Review
3 changed files with 1 additions and 8 deletions

View File

@@ -46,11 +46,7 @@ public class SettingsHomepageActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.settings_homepage_container);
final View root = findViewById(R.id.settings_homepage_container);
root.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
final View appBar = findViewById(R.id.app_bar_container);
appBar.setMinimumHeight(getSearchBoxHeight());