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

Commit b76f9472 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Do not stop dream service if dream activity is relaunching" into rvc-dev

parents 1221e902 d948f743
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1075,9 +1075,13 @@ public class DreamService extends Service implements Window.Callback {

                    @Override
                    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.
                            mActivity = null;
                            finish();
                        }
                    }
                });
    }