OSDN Git Service

Fix some error messages, turn off logging.
authorDianne Hackborn <hackbod@google.com>
Sat, 22 Jan 2011 00:44:04 +0000 (16:44 -0800)
committerDianne Hackborn <hackbod@google.com>
Sat, 22 Jan 2011 00:44:04 +0000 (16:44 -0800)
Change-Id: Ifcd2c0f0ad137485896144d2248361aeb0a05600

core/java/android/app/FragmentManager.java
core/java/android/app/LoaderManager.java

index bce240f..e729805 100644 (file)
@@ -332,7 +332,7 @@ final class FragmentManagerState implements Parcelable {
  * Container for fragments associated with an activity.
  */
 final class FragmentManagerImpl extends FragmentManager {
-    static boolean DEBUG = true;
+    static boolean DEBUG = false;
     static final String TAG = "FragmentManager";
     
     static final String TARGET_REQUEST_CODE_STATE_TAG = "android:target_req_state";
@@ -747,7 +747,7 @@ final class FragmentManagerImpl extends FragmentManager {
                         f.onActivityCreated(f.mSavedFragmentState);
                         if (!f.mCalled) {
                             throw new SuperNotCalledException("Fragment " + f
-                                    + " did not call through to super.onReady()");
+                                    + " did not call through to super.onActivityCreated()");
                         }
                         f.mSavedFragmentState = null;
                     }
@@ -810,7 +810,7 @@ final class FragmentManagerImpl extends FragmentManager {
                         f.onDestroyView();
                         if (!f.mCalled) {
                             throw new SuperNotCalledException("Fragment " + f
-                                    + " did not call through to super.onDestroyedView()");
+                                    + " did not call through to super.onDestroyView()");
                         }
                         if (f.mView != null && f.mContainer != null) {
                             Animator anim = null;
index fc5f5fc..431be05 100644 (file)
@@ -186,7 +186,7 @@ public abstract class LoaderManager {
 
 class LoaderManagerImpl extends LoaderManager {
     static final String TAG = "LoaderManager";
-    static boolean DEBUG = true;
+    static boolean DEBUG = false;
 
     // These are the currently active loaders.  A loader is here
     // from the time its load is started until it has been explicitly