Merge "The transformhelper now also transforms gone views"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ffc9c74013
@@ -224,9 +224,6 @@ public class ViewTransformationHelper implements TransformableView {
|
||||
stack.push(viewRoot);
|
||||
while (!stack.isEmpty()) {
|
||||
View child = stack.pop();
|
||||
if (child.getVisibility() == View.GONE) {
|
||||
continue;
|
||||
}
|
||||
Boolean containsView = (Boolean) child.getTag(TAG_CONTAINS_TRANSFORMED_VIEW);
|
||||
if (containsView == null) {
|
||||
// This one is unhandled, let's add it to our list.
|
||||
|
||||
@@ -69,7 +69,8 @@ public class TransformState {
|
||||
public void transformViewFrom(TransformState otherState, float transformationAmount) {
|
||||
mTransformedView.animate().cancel();
|
||||
if (sameAs(otherState)) {
|
||||
if (mTransformedView.getVisibility() == View.INVISIBLE) {
|
||||
if (mTransformedView.getVisibility() == View.INVISIBLE
|
||||
|| mTransformedView.getAlpha() != 1.0f) {
|
||||
// We have the same content, lets show ourselves
|
||||
mTransformedView.setAlpha(1.0f);
|
||||
mTransformedView.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user