Update to follow API change.

Change-Id: I092f2a9fde19648f5d47bde091d15f1bb5deb63b
This commit is contained in:
Dianne Hackborn
2012-04-10 16:15:15 -07:00
parent f8681d4c56
commit 1b9744a99a

View File

@@ -122,7 +122,7 @@ public class Animation extends Activity {
Canvas c = new Canvas(bm); Canvas c = new Canvas(bm);
//c.drawARGB(255, 255, 0, 0); //c.drawARGB(255, 255, 0, 0);
ActivityOptions opts = ActivityOptions.makeThumbnailScaleUpAnimation( ActivityOptions opts = ActivityOptions.makeThumbnailScaleUpAnimation(
v, bm, 0, 0, null); v, bm, 0, 0);
// Request the activity be started, using the custom animation options. // Request the activity be started, using the custom animation options.
startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle()); startActivity(new Intent(Animation.this, AlertDialogSamples.class), opts.toBundle());
v.setDrawingCacheEnabled(false); v.setDrawingCacheEnabled(false);