11.0 产品开发中,有需求要求禁止下拉状态栏
SystemUI 禁止下拉状态栏 四部分修改:
1.未锁屏时禁止状态栏和通知栏下拉
framework/base/packages/apps/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
private void adjustStatusBarLocked(boolean forceHideHomeRecentsButtons,
boolean forceClearFlags) {
if (mStatusBarManager == null) {
mStatusBarManager = (StatusBarManager)
mContext.getSystemService(Context.STATUS_BAR_SERVICE)