Merge "Fixed an issue where isFalseTouch could be queried" into oc-mr1-dev

am: efeb2cf943

Change-Id: I3e46e13d5e84a5e45849ca15d716486f1032bc4f
This commit is contained in:
Selim Cinek
2017-08-24 16:07:37 +00:00
committed by android-build-merger
2 changed files with 10 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ import com.android.systemui.Gefingerpoken;
import com.android.systemui.Interpolators;
import com.android.systemui.R;
import com.android.systemui.classifier.FalsingManager;
import com.android.systemui.statusbar.phone.StatusBar;
/**
* A utility class to enable the downward swipe on the lockscreen to go to the full shade and expand
@@ -149,6 +150,9 @@ public class DragDownHelper implements Gefingerpoken {
}
private boolean isFalseTouch() {
if (!mDragDownCallback.isFalsingCheckNeeded()) {
return false;
}
return mFalsingManager.isFalseTouch() || !mDraggedFarEnough;
}
@@ -249,5 +253,6 @@ public class DragDownHelper implements Gefingerpoken {
void onCrossedThreshold(boolean above);
void onTouchSlopExceeded();
void setEmptyDragAmount(float amount);
boolean isFalsingCheckNeeded();
}
}

View File

@@ -4949,6 +4949,11 @@ public class StatusBar extends SystemUI implements DemoMode,
mNotificationPanel.setEmptyDragAmount(amount);
}
@Override
public boolean isFalsingCheckNeeded() {
return mState == StatusBarState.KEYGUARD;
}
/**
* If secure with redaction: Show bouncer, go to unlocked shade.
*