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

Commit 55798dd6 authored by Bryce Lee's avatar Bryce Lee Committed by Automerger Merge Worker
Browse files

Merge "Clear reference to DreamActivity window." into tm-dev am: 650bc974

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17075004

Change-Id: I426f95457fdc71620a7e6e4d4e3d14ea66cea1ef
parents dafa7168 650bc974
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1341,7 +1341,9 @@ public class DreamService extends Service implements Window.Callback {
                    public void onViewDetachedFromWindow(View v) {
                        if (mActivity == null || !mActivity.isChangingConfigurations()) {
                            // Only stop the dream if the view is not detached by relaunching
                            // activity for configuration changes.
                            // activity for configuration changes. It is important to also clear
                            // the window reference in order to fully release the DreamActivity.
                            mWindow = null;
                            mActivity = null;
                            finish();
                        }