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

Commit 9724431b authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a crash when showing guts

if a view was detached right before
showing the guts it would crash

Change-Id: I4de84f077b6bfbfdf12423470c91956122b6b4f9
Fixes: 33817182
parent c681346a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1149,6 +1149,11 @@ public abstract class BaseStatusBar extends SystemUI implements
                // Post to ensure the the guts are properly laid out.
                guts.post(new Runnable() {
                    public void run() {
                        if (row.getWindowToken() == null) {
                            Log.e(TAG, "Trying to show notification guts, but not attached to "
                                    + "window");
                            return;
                        }
                        dismissPopups(-1 /* x */, -1 /* y */, false /* resetGear */,
                                false /* animate */);
                        guts.setVisibility(View.VISIBLE);