don't hide actionbar in fullscreen since we don't have iitc-tabs for control
This commit is contained in:
parent
9edcdaac3d
commit
87c0c54a26
@ -222,8 +222,6 @@ public class IITC_Mobile extends Activity {
|
|||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
// leave fullscreen mode if it is enabled
|
// leave fullscreen mode if it is enabled
|
||||||
if (fullscreen_mode) {
|
if (fullscreen_mode) {
|
||||||
// get back action bar
|
|
||||||
actionBar.show();
|
|
||||||
// show notification bar again
|
// show notification bar again
|
||||||
WindowManager.LayoutParams attrs = getWindow().getAttributes();
|
WindowManager.LayoutParams attrs = getWindow().getAttributes();
|
||||||
attrs.flags ^= WindowManager.LayoutParams.FLAG_FULLSCREEN;
|
attrs.flags ^= WindowManager.LayoutParams.FLAG_FULLSCREEN;
|
||||||
@ -282,8 +280,6 @@ public class IITC_Mobile extends Activity {
|
|||||||
// toggle fullscreen
|
// toggle fullscreen
|
||||||
case R.id.toggle_fullscreen :
|
case R.id.toggle_fullscreen :
|
||||||
if (!this.fullscreen_mode) {
|
if (!this.fullscreen_mode) {
|
||||||
// get rid of action bar
|
|
||||||
this.getActionBar().hide();
|
|
||||||
// hide notification bar
|
// hide notification bar
|
||||||
WindowManager.LayoutParams attrs = getWindow()
|
WindowManager.LayoutParams attrs = getWindow()
|
||||||
.getAttributes();
|
.getAttributes();
|
||||||
@ -295,8 +291,6 @@ public class IITC_Mobile extends Activity {
|
|||||||
"Press back button to exit fullscreen",
|
"Press back button to exit fullscreen",
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
} else {
|
||||||
// get back action bar
|
|
||||||
this.getActionBar().show();
|
|
||||||
// show notification bar again
|
// show notification bar again
|
||||||
WindowManager.LayoutParams attrs = getWindow()
|
WindowManager.LayoutParams attrs = getWindow()
|
||||||
.getAttributes();
|
.getAttributes();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user