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

Commit 6c38cac1 authored by namagi's avatar namagi Committed by Steve Kondik
Browse files

SystemUI: prevent NPE on clear recents double press

Pressing Clear all button twice fast or while the list
is clearing but not yet fully cleared causes sysui to crash due to
mRecentTaskDescriptions being null: (http://pastebin.com/2gRFvf8k)

Workaround it by hiding clear all recents button.

Change-Id: I23d10edfd336041739fe80352ee01987e671dbd7
parent a9fa542b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -463,6 +463,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
                @Override
                public void onClick(View v) {
                    mRecentsContainer.removeAllViewsInLayout();
                    mClearRecents.setVisibility(View.INVISIBLE);
                }
            });
        }