android7.1 SystemUI 移植要点

一. 锁屏状态下禁止下拉状态栏

-------------------------------------------------------------------------------------------

1. PhoneStatusBar.java
4445 public boolean onDraggedDown(View startingChild, int dragLengthY) {
4446 if (/*hasActiveNotifications()*/false) {

2. NotificationPanelView.java
修改点一:handleQsTouch函数中如下代码:
779 if (!mKeyguardShowing && !mQsExpandImmediate && mQsTracking) {
780 onQsTouch(event);
781 if (!mConflictingQsExpansionGesture) {
782 return true;
783 }
784 }
修改点二:
981 private void setQsExpanded(boolean expanded) {
//add begin
if(mKeyguardShowing) return;
//add eng

982 boolean changed = mQsExpanded != expanded;
修改点三:
1351 private boolean shouldQuickSettingsIntercept(float x, float y, float yDiff) {
1352 if (!mQsExpansionEnabled || mCollapsedOnDown) {
1353 return false;
1354 }

1355 View header = /*mKeyguardShowing ? mKeyguardStatusBar : mtk annotation*/mQsContainer.getHeader();

-------------------------------------------------------------------------------------------

你可能感兴趣的:(android,7.1移植)