summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2011-08-16 13:50:18 +0200
committerMartijn Coenen <maco@google.com>2011-08-16 13:50:18 +0200
commit0ea442671a5b3c178f522214c8d854b8021c7606 (patch)
tree3725232d4e10309d00cf0f6a6bccf67ece26bb0f /src
parentfb8d1457e8467d50f253cf88cc47fd88d02ea704 (diff)
downloadpackages_apps_nfc-0ea442671a5b3c178f522214c8d854b8021c7606.zip
packages_apps_nfc-0ea442671a5b3c178f522214c8d854b8021c7606.tar.gz
packages_apps_nfc-0ea442671a5b3c178f522214c8d854b8021c7606.tar.bz2
Prevent NFC task transition animations.
This fixes the "black flashes" when starting/finishing the NFC animation activity. TODO: - The status bar is "animated in" still, causing a brief white rectangle where the status bar is. Change-Id: Id99f3ecfe8695edcb6c02caa611731fa6e58a560
Diffstat (limited to 'src')
-rw-r--r--src/com/android/nfc/P2pAnimationActivity.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/nfc/P2pAnimationActivity.java b/src/com/android/nfc/P2pAnimationActivity.java
index 36a75ca..6bc3fb9 100644
--- a/src/com/android/nfc/P2pAnimationActivity.java
+++ b/src/com/android/nfc/P2pAnimationActivity.java
@@ -130,6 +130,7 @@ public class P2pAnimationActivity extends Activity implements Handler.Callback,
@Override
public void onAnimationEnd(Animator animation) {
finish();
+ overridePendingTransition(0, 0);
}
}
@@ -345,11 +346,7 @@ public class P2pAnimationActivity extends Activity implements Handler.Callback,
private void onSuccessCloneAnimationUpdate(ValueAnimator animation) {
// Clone the screenshot
if (mClonedView.getVisibility() != View.VISIBLE) {
- // Scale clone to same size
- mClonedView.setScaleX(mScreenshotView.getScaleX());
- mClonedView.setScaleY(mScreenshotView.getScaleY());
mClonedView.setVisibility(View.VISIBLE);
-
mScreenshotView.setAlpha(0.5f);
}