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

Commit 766d3bb5 authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

SysUI: Don't call removeAllViews on AdapterView

Change-Id: I957c87e499fb719d1d45671c968c625dac75ecc7
TICKET: OPO-649
parent 8dd6c305
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ import android.view.animation.AccelerateInterpolator;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
import android.view.animation.PathInterpolator;
import android.widget.AdapterView;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
@@ -3882,7 +3883,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                removeAllViews((ViewGroup) child);
            }
        }
        parent.removeAllViews();

        // AdapterView does not support removeAllViews so check before calling
        if (!(parent instanceof AdapterView)) parent.removeAllViews();
    }

    /**