diff options
author | Andrew Dolgov <[email protected]> | 2012-11-29 11:14:43 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-11-29 11:14:43 +0400 |
commit | cbc931fc6cc5a55d25f30bb8aaa1a6e6b96fd1f3 (patch) | |
tree | b89599efad04f79c760b7f1b54363820e237758f /src | |
parent | 4f67f17fa0bc29554313909fdf376ecf0be6af33 (diff) |
hide actionbar while reading in fullscreen mode
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttcomics/ViewComicActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/fox/ttcomics/ViewComicActivity.java b/src/org/fox/ttcomics/ViewComicActivity.java index e5790d9..48bfa9e 100644 --- a/src/org/fox/ttcomics/ViewComicActivity.java +++ b/src/org/fox/ttcomics/ViewComicActivity.java @@ -32,6 +32,7 @@ public class ViewComicActivity extends CommonActivity { private String m_fileName;
private String m_tmpFileName;
+ private boolean m_fullScreen = false;
@SuppressLint("NewApi")
@Override
@@ -64,6 +65,9 @@ public class ViewComicActivity extends CommonActivity { if (m_prefs.getBoolean("use_full_screen", false)) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
+
+ getActionBar().hide();
+ m_fullScreen = true;
}
}
@@ -74,6 +78,10 @@ public class ViewComicActivity extends CommonActivity { menu.findItem(R.id.menu_sync_location).setVisible(m_prefs.getBoolean("use_position_sync", false) && m_syncClient.hasOwner());
+ if (m_fullScreen && !isCompatMode()) {
+ menu.findItem(R.id.menu_share).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
+ }
+
return true;
}
|