修改路径
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
修改代码
/* Only ever called as a consequence of a lockscreen expansion gesture. */
@Override
public boolean onDraggedDown(View startingChild, int dragLengthY) {
// 加入这句,滑动锁下禁止下拉快捷设置
if (mState == StatusBarState.KEYGUARD){
return false;
}
//
if (mState == StatusBarState.KEYGUARD
&& hasActiveNotifications() && (!isDozing() || isPulsing())) {
mLockscreenGestureLogger.write(
MetricsEvent.ACTION_LS_SHADE,
(int) (dragLengthY / mDisplayMetrics.density),
0 /* velocityDp - N/A */);
// We have notifications, go to locked shade.
goToLockedShade(startingChild);
if (startingChild instanceof ExpandableNotificationRow) {
ExpandableNotificationRow row = (ExpandableNotificationRow) startingChild;
row.onExpandedByGesture(true /* drag down is always an open */);
}
return true;
} else {
// abort gesture.
return false;
}
}