API Review: change SharedElementListener to SharedElementCallback
Bug 17289526 Change-Id: I5d28a77d870b83cc93483be23635bc669978cefc
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user