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

Commit 3bdc4846 authored by Prince Donkor's avatar Prince Donkor Committed by Android (Google) Code Review
Browse files

Merge "Exposing dream service activity to embed home control panel" into main

parents 3ff81f85 8cb143f2
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -444,6 +444,19 @@ public class DreamService extends Service implements Window.Callback {
        return mWindow;
    }

    /**
     * Retrieves the current {@link android.app.Activity} associated with the dream.
     * This method behaves similarly to calling {@link android.app.Activity#getActivity()}.
     *
     * @return The current activity, or null if the dream is not associated with an activity
     * or not started.
     *
     * @hide
     */
    public Activity getActivity() {
        return mActivity;
    }

    /**
     * Inflates a layout resource and set it to be the content view for this Dream.
     * Behaves similarly to {@link android.app.Activity#setContentView(int)}.