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

Commit 2c50b480 authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Revert "Force remove DreamActivity from system server""

parents fa09a092 f904724d
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@

package com.android.server.dreams;

import static android.app.WindowConfiguration.ACTIVITY_TYPE_DREAM;

import android.app.ActivityTaskManager;
import android.app.BroadcastOptions;
import android.content.ComponentName;
import android.content.Context;
@@ -65,7 +62,6 @@ final class DreamController {
    private final Context mContext;
    private final Handler mHandler;
    private final Listener mListener;
    private final ActivityTaskManager mActivityTaskManager;

    private final Intent mDreamingStartedIntent = new Intent(Intent.ACTION_DREAMING_STARTED)
            .addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
@@ -93,7 +89,6 @@ final class DreamController {
        mContext = context;
        mHandler = handler;
        mListener = listener;
        mActivityTaskManager = mContext.getSystemService(ActivityTaskManager.class);
        mCloseNotificationShadeIntent = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
        mCloseNotificationShadeIntent.putExtra("reason", "dream");
    }
@@ -277,9 +272,6 @@ final class DreamController {
                    mSentStartBroadcast = false;
                }

                mActivityTaskManager.removeRootTasksWithActivityTypes(
                        new int[] {ACTIVITY_TYPE_DREAM});

                mListener.onDreamStopped(dream.mToken);
            }
        } finally {