.. | .. |
---|
1259 | 1259 | mNaturalBarHeight = |
---|
1260 | 1260 | res.getDimensionPixelSize(com.android.internal.R.dimen.status_bar_height); |
---|
1261 | 1261 | } |
---|
| 1262 | + boolean ban_sb = SystemProperties.getBoolean("persist.sys.ban_sb", false); |
---|
| 1263 | + Log.i("HCM", "persist.sys.ban_sb = " + ban_sb); |
---|
| 1264 | + if (ban_sb) { |
---|
| 1265 | + mNaturalBarHeight = 0; |
---|
| 1266 | + } |
---|
1262 | 1267 | return mNaturalBarHeight; |
---|
1263 | 1268 | } |
---|
1264 | 1269 | |
---|
.. | .. |
---|
2700 | 2705 | final Resources res = mContext.getResources(); |
---|
2701 | 2706 | |
---|
2702 | 2707 | int oldBarHeight = mNaturalBarHeight; |
---|
2703 | | - mNaturalBarHeight = res.getDimensionPixelSize( |
---|
2704 | | - com.android.internal.R.dimen.status_bar_height); |
---|
| 2708 | + boolean ban_sb = SystemProperties.getBoolean("persist.sys.ban_sb", false); |
---|
| 2709 | + Log.i("HCM", "persist.sys.ban_sb = " + ban_sb); |
---|
| 2710 | + if (ban_sb) { |
---|
| 2711 | + mNaturalBarHeight = 0; |
---|
| 2712 | + } else { |
---|
| 2713 | + mNaturalBarHeight = res.getDimensionPixelSize( |
---|
| 2714 | + com.android.internal.R.dimen.status_bar_height); |
---|
| 2715 | + } |
---|
| 2716 | + |
---|
2705 | 2717 | if (mStatusBarWindowController != null && mNaturalBarHeight != oldBarHeight) { |
---|
2706 | 2718 | mStatusBarWindowController.setBarHeight(mNaturalBarHeight); |
---|
2707 | 2719 | } |
---|