Merge "API Review: change SharedElementListener to SharedElementCallback" into lmp-dev

This commit is contained in:
George Mount
2014-09-05 13:55:44 +00:00
committed by Android (Google) Code Review

View File

@@ -19,7 +19,7 @@ import com.example.android.apis.R;
import android.app.Activity; import android.app.Activity;
import android.app.ActivityOptions; import android.app.ActivityOptions;
import android.app.SharedElementListener; import android.app.SharedElementCallback;
import android.content.Intent; import android.content.Intent;
import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.ColorDrawable;
import android.os.Bundle; import android.os.Bundle;
@@ -104,9 +104,9 @@ public class ActivityTransition extends Activity {
mHero = null; mHero = null;
if (name != null) { if (name != null) {
mHero = (ImageView) findViewById(getIdForKey(name)); mHero = (ImageView) findViewById(getIdForKey(name));
setEnterSharedElementListener(new SharedElementListener() { setEnterSharedElementCallback(new SharedElementCallback() {
@Override @Override
public void remapSharedElements(List<String> names, public void onMapSharedElements(List<String> names,
Map<String, View> sharedElements) { Map<String, View> sharedElements) {
sharedElements.put("hero", mHero); sharedElements.put("hero", mHero);
} }