Make camera affordance fly away
Stop gap measure to differenciate the accepted vs rejected response of the camera affordance on the lockscreen. Bug: 14081010 Change-Id: I04d170aa3f07ce5f440fb1d27f7c62ef2a903a03
This commit is contained in:
@@ -205,6 +205,15 @@ public class NavigationBarView extends LinearLayout {
|
|||||||
mContext.startActivityAsUser(
|
mContext.startActivityAsUser(
|
||||||
new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE),
|
new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE),
|
||||||
UserHandle.CURRENT);
|
UserHandle.CURRENT);
|
||||||
|
cameraButtonView.animate().x(-cameraButtonView.getWidth())
|
||||||
|
.setInterpolator(new AccelerateInterpolator(2f)).withEndAction(
|
||||||
|
new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
cameraButtonView.setTranslationX(0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mSkipCancelAnimation = true;
|
||||||
}
|
}
|
||||||
if (realX < mStartX - mScaledTouchSlop) {
|
if (realX < mStartX - mScaledTouchSlop) {
|
||||||
mTouchSlopReached = true;
|
mTouchSlopReached = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user