Loading core/java/android/service/dreams/DreamService.java +13 −0 Original line number Diff line number Diff line Loading @@ -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)}. Loading Loading
core/java/android/service/dreams/DreamService.java +13 −0 Original line number Diff line number Diff line Loading @@ -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)}. Loading