summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/DialogFragment.java
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2015-04-14 18:22:54 -0700
committerTodd Kennedy <toddke@google.com>2015-04-30 12:52:32 -0700
commita5fc6f006f67867417b7a427de6e7394c4312dec (patch)
tree180ff23b89b1aa406ead814d254889f248e0e5dc /core/java/android/app/DialogFragment.java
parent033dc46bb949a9a5e42ed51bbff1e055a7c58ca2 (diff)
downloadframeworks_base-a5fc6f006f67867417b7a427de6e7394c4312dec.zip
frameworks_base-a5fc6f006f67867417b7a427de6e7394c4312dec.tar.gz
frameworks_base-a5fc6f006f67867417b7a427de6e7394c4312dec.tar.bz2
Remove dependency upon FragmentActivity
The FragmentManagerImpl is intimately tied with a FragmentActivity. In many cases, we want to be able to create / manage Fragments outside of a FragmentManager. This defines a FragmentController interface that can be used by any class to host Fragments. Bug: 19569654 Change-Id: I6816a5c1815122d206062b9f4584ad460b3d41dd
Diffstat (limited to 'core/java/android/app/DialogFragment.java')
-rw-r--r--core/java/android/app/DialogFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/DialogFragment.java b/core/java/android/app/DialogFragment.java
index bde5a61..2fb8cc2 100644
--- a/core/java/android/app/DialogFragment.java
+++ b/core/java/android/app/DialogFragment.java
@@ -410,7 +410,7 @@ public class DialogFragment extends Fragment
return (LayoutInflater)mDialog.getContext().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
}
- return (LayoutInflater)mActivity.getSystemService(
+ return (LayoutInflater) mHost.getContext().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
}