diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-01-24 23:58:13 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-01-25 11:28:39 -0800 |
| commit | 7187ccb93ee8adbb745fcbb901cfacfeed397a23 (patch) | |
| tree | cc1a17e2e05e8b4898a3ff9f2f5978275d272412 /core/java/android/app/Fragment.java | |
| parent | 774f9be5dc02e8a7f742008872c6214e517cb8a3 (diff) | |
Fix issue #3385839: Fragment.onCreateView is passing in activity...
...context for a DialogFragment
Change-Id: I434ebca64d2738da4c27321db8dbbded2cbe167d
Diffstat (limited to 'core/java/android/app/Fragment.java')
| -rw-r--r-- | core/java/android/app/Fragment.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/Fragment.java b/core/java/android/app/Fragment.java index b3d111aeb3e3..8982110ff0d5 100644 --- a/core/java/android/app/Fragment.java +++ b/core/java/android/app/Fragment.java @@ -850,6 +850,15 @@ public class Fragment implements ComponentCallbacks, OnCreateContextMenuListener } /** + * @hide Hack so that DialogFragment can make its Dialog before creating + * its views, and the view construction can use the dialog's context for + * inflation. Maybe this should become a public API. Note sure. + */ + public LayoutInflater getLayoutInflater(Bundle savedInstanceState) { + return mActivity.getLayoutInflater(); + } + + /** * Called when a fragment is being created as part of a view layout * inflation, typically from setting the content view of an activity. This * will be called immediately after the fragment is created from a <fragment> |
