SetupWizard: Fix regression setting UI flags with onscreen keys

Change-Id: I9fbbf4368ebe8faabbe4d66b5cacbf9ee2f3be36
This commit is contained in:
cretin45 2015-02-17 11:00:08 -08:00
parent 9d72db9dbe
commit 77c129f8b9

View File

@ -62,8 +62,6 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
setContentView(R.layout.setup_main); setContentView(R.layout.setup_main);
getWindow().setWindowAnimations(android.R.anim.fade_in); getWindow().setWindowAnimations(android.R.anim.fade_in);
mRootView = findViewById(R.id.root); mRootView = findViewById(R.id.root);
@ -128,6 +126,10 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
@Override @Override
protected void onResume() { protected void onResume() {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
super.onResume(); super.onResume();
onPageTreeChanged(); onPageTreeChanged();
enableButtonBar(true); enableButtonBar(true);