It is not possible to keep this function unchanged, since enterFullScreen() should be put under onCreate(savedInstanceState) not public void onCreate(Bundle savedInstanceState), otherwise,
the fullscreen mode still will not work with navigation bar.