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

Do not animate navigation bar fullscreen exit in onDestroy #1786

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ public void releaseWidget() {
mWidgetManager.removeUpdateListener(this);
mWidgetManager.removeWorldClickListener(this);
mPrefs.unregisterOnSharedPreferenceChangeListener(this);

if (mAttachedWindow != null && mAttachedWindow.isFullScreen()) {
// Workaround for https://issuetracker.google.com/issues/37123764
// exitFullScreenMode() may animate some views that are then released
// so use a custom way to exit fullscreen here without triggering view updates.
if (mSessionStack.isInFullScreen()) {
mSessionStack.exitFullScreen();
}
mAttachedWindow.restoreBeforeFullscreenPlacement();
mAttachedWindow.setIsFullScreen(false);
mWidgetManager.popBackHandler(mFullScreenBackHandler);
}

detachFromWindow();

Expand Down