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

Commit 8cb143f2 authored by Prince's avatar Prince
Browse files

Exposing dream service activity to embed home control panel

Test: TBT
Flag: ACONFIG FLAG_HOME_PANEL_DREAM DEVELOPMENT
Change-Id: I359955ddad4f7b2ea9a36574a7282a06bfbc5e68
parent 63fc2f79
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)}.