修改alps/packages/apps/Gallery2/src/com/android/gallery3d/app/AbstractGalleryActivity.java中toggleStatusBarByOrientation() 方法:
复制代码 代码如下:
private void toggleStatusBarByOrientation() {
if (mDisableToggleStatusBar) return;
Window win = getWindow();
win.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
// if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
// win.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
// } else {
// win.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
// }
...
}