Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void shutdown() {
private boolean mNeedsOffscreenAlphaCompositing;
private @Nullable ViewGroupDrawingOrderHelper mDrawingOrderHelper;
private float mBackfaceOpacity;
private String mBackfaceVisibility;
private boolean mBackfaceVisible;
private @Nullable Set<Integer> mChildrenRemovedWhileTransitioning;

/**
Expand Down Expand Up @@ -172,7 +172,7 @@ private void initView() {
mNeedsOffscreenAlphaCompositing = false;
mDrawingOrderHelper = null;
mBackfaceOpacity = 1.f;
mBackfaceVisibility = "visible";
mBackfaceVisible = true;
mChildrenRemovedWhileTransitioning = null;
}

Expand Down Expand Up @@ -989,14 +989,12 @@ public void setOpacityIfPossible(float opacity) {
}

public void setBackfaceVisibility(String backfaceVisibility) {
mBackfaceVisibility = backfaceVisibility;
mBackfaceVisible = "visible".equals(backfaceVisibility);
setBackfaceVisibilityDependantOpacity();
}

public void setBackfaceVisibilityDependantOpacity() {
boolean isBackfaceVisible = mBackfaceVisibility.equals("visible");

if (isBackfaceVisible) {
if (mBackfaceVisible) {
setAlpha(mBackfaceOpacity);
return;
}
Expand Down
Loading