diff options
author | George Mount <mount@google.com> | 2014-10-10 13:22:36 -0700 |
---|---|---|
committer | George Mount <mount@google.com> | 2014-10-10 13:22:36 -0700 |
commit | 5ac9b20b41f72baabcb8a7d114bcaac3ed37e352 (patch) | |
tree | 749d983b0a68de432b95668ca93df9b47a7a7fc9 /core/java/android/transition | |
parent | 294297df4e3f327a81d922563c518aee8ee3e51d (diff) | |
download | frameworks_base-5ac9b20b41f72baabcb8a7d114bcaac3ed37e352.zip frameworks_base-5ac9b20b41f72baabcb8a7d114bcaac3ed37e352.tar.gz frameworks_base-5ac9b20b41f72baabcb8a7d114bcaac3ed37e352.tar.bz2 |
Allow using setLeft/Top/Right/Bottom to control ChangeBounds.
Bug 17938614
Change-Id: Ia341fdd63ab57ec16a3de6349b7eb07fdc0a48ae
Diffstat (limited to 'core/java/android/transition')
-rw-r--r-- | core/java/android/transition/ChangeBounds.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/transition/ChangeBounds.java b/core/java/android/transition/ChangeBounds.java index 0a44ba2..0da5fb6 100644 --- a/core/java/android/transition/ChangeBounds.java +++ b/core/java/android/transition/ChangeBounds.java @@ -118,7 +118,7 @@ public class ChangeBounds extends Transition { private void captureValues(TransitionValues values) { View view = values.view; - if (view.isLaidOut()) { + if (view.isLaidOut() || view.getWidth() != 0 || view.getHeight() != 0) { values.values.put(PROPNAME_BOUNDS, new Rect(view.getLeft(), view.getTop(), view.getRight(), view.getBottom())); values.values.put(PROPNAME_PARENT, values.view.getParent()); |