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

Commit 10104fcc authored by Galia Peycheva's avatar Galia Peycheva Committed by Android (Google) Code Review
Browse files

Merge "Make DreamService detach on DreamActivity onDestroy" into udc-dev

parents 19573fe4 3f6a4e9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class DreamActivity extends Activity {

    @Override
    public void onDestroy() {
        if (mCallback != null && !isFinishing()) {
        if (mCallback != null) {
            mCallback.onActivityDestroyed();
        }

+2 −1
Original line number Diff line number Diff line
@@ -1588,7 +1588,8 @@ public class DreamService extends Service implements Window.Callback {
        // If DreamActivity is destroyed, wake up from Dream.
        void onActivityDestroyed() {
            mActivity = null;
            onDestroy();
            mWindow = null;
            detach();
        }
    }