Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f64c1df authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix a transient view crash.

Fixes: 215154169
Test: manual testing making the silent view re-add
Change-Id: I77c9fddb62cae8358e624b9e94ba8a906733df9b
parent feb567fa
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -552,14 +552,8 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable {
        final ViewGroup transientContainer = getTransientContainer();
        if (parent == null || parent == newParent) {
            // If this view's current parent is null or the same as the new parent, the add will
            // succeed, so just make sure the tracked transient container is in sync with the
            // current parent.
            if (transientContainer != null && transientContainer != parent) {
                Log.w(TAG, "Expandable view " + this
                        + " has transient container " + transientContainer
                        + " but different parent" + parent);
                setTransientContainer(null);
            }
            // succeed as long as it's a true child, so just make sure the view isn't transient.
            removeFromTransientContainer();
            return;
        }
        if (transientContainer == null) {