OSDN Git Service

Fix bug in Scene's use of setTag
authorAdam Powell <adamp@google.com>
Thu, 24 Oct 2013 22:58:53 +0000 (15:58 -0700)
committerAdam Powell <adamp@google.com>
Thu, 24 Oct 2013 23:01:34 +0000 (16:01 -0700)
setTagInternal must be used for framework resource IDs.

Bug 11374402

Change-Id: If4d256dbf05055dac70796edd8d7b94bf65d947d

core/java/android/transition/Scene.java

index 5800bd5..e1f1896 100644 (file)
@@ -57,7 +57,7 @@ public final class Scene {
                 com.android.internal.R.id.scene_layoutid_cache);
         if (scenes == null) {
             scenes = new SparseArray<Scene>();
-            sceneRoot.setTag(com.android.internal.R.id.scene_layoutid_cache, scenes);
+            sceneRoot.setTagInternal(com.android.internal.R.id.scene_layoutid_cache, scenes);
         }
         Scene scene = scenes.get(layoutId);
         if (scene != null) {