diff options
author | Jeff Davidson <jpd@google.com> | 2014-09-09 18:10:57 -0700 |
---|---|---|
committer | Jeff Davidson <jpd@google.com> | 2014-09-09 18:10:57 -0700 |
commit | 2a129789adbfa64098cba50a27f88d9602d022ab (patch) | |
tree | d516b57d078b588dd8945e0d58f437b417f085f5 /core/java | |
parent | 2f439763bd4ce8b38ab66ed45e3d8ed4a31e9a33 (diff) | |
download | frameworks_base-2a129789adbfa64098cba50a27f88d9602d022ab.zip frameworks_base-2a129789adbfa64098cba50a27f88d9602d022ab.tar.gz frameworks_base-2a129789adbfa64098cba50a27f88d9602d022ab.tar.bz2 |
Update unclear Fragment Javadoc.
"Empty" could imply that the constructor body itself is empty, which
is not a requirement. All that matters is that the constructor is
public and takes no arguments.
Change-Id: Id1cda8835baee9f9ad89aba8b3d33b963e61e718
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/app/Fragment.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/Fragment.java b/core/java/android/app/Fragment.java index 672ef7b..4374622 100644 --- a/core/java/android/app/Fragment.java +++ b/core/java/android/app/Fragment.java @@ -166,11 +166,12 @@ final class FragmentState implements Parcelable { * activity: if the activity is stopped, no fragments inside of it can be * started; when the activity is destroyed, all fragments will be destroyed. * - * <p>All subclasses of Fragment must include a public empty constructor. + * <p>All subclasses of Fragment must include a public no-argument constructor. * The framework will often re-instantiate a fragment class when needed, * in particular during state restore, and needs to be able to find this - * constructor to instantiate it. If the empty constructor is not available, - * a runtime exception will occur in some cases during state restore. + * constructor to instantiate it. If the no-argument constructor is not + * available, a runtime exception will occur in some cases during state + * restore. * * <p>Topics covered here: * <ol> |