Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix crash calling hide when the activity is destroyed (#2876)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored Feb 26, 2020
1 parent 1dd10d3 commit c64365e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public void hide(@HideFlags int aHideFlags) {
}
}

if (mWidgetPlacement.visible) {
if (mWidgetPlacement.visible && mWidgetManager != null) {
mWidgetPlacement.visible = false;
if (aHideFlags == REMOVE_WIDGET) {
mWidgetManager.removeWidget(this);
Expand Down

0 comments on commit c64365e

Please sign in to comment.