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:
Adrian Roos
2014-04-17 15:09:41 +02:00
parent 33ac0dfc9f
commit c8ba7d3f87

View File

@@ -205,6 +205,15 @@ public class NavigationBarView extends LinearLayout {
mContext.startActivityAsUser(
new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE),
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) {
mTouchSlopReached = true;