|
22 | 22 | import android.content.res.Configuration; |
23 | 23 | import android.content.res.TypedArray; |
24 | 24 | import android.os.Bundle; |
| 25 | +// TODO(cmautner): remove after fixing 6829431. |
| 26 | +import android.os.Debug; |
25 | 27 | import android.os.Handler; |
26 | 28 | import android.os.Looper; |
27 | 29 | import android.os.Parcel; |
@@ -383,7 +385,8 @@ public FragmentManagerState[] newArray(int size) { |
383 | 385 | * Container for fragments associated with an activity. |
384 | 386 | */ |
385 | 387 | final class FragmentManagerImpl extends FragmentManager { |
386 | | - static boolean DEBUG = false; |
| 388 | + // TODO(cmautner): restore to false after fixing 6829431. |
| 389 | + static boolean DEBUG = true; |
387 | 390 | static final String TAG = "FragmentManager"; |
388 | 391 |
|
389 | 392 | static final String TARGET_REQUEST_CODE_STATE_TAG = "android:target_req_state"; |
@@ -732,6 +735,10 @@ public void performPendingDeferredStart(Fragment f) { |
732 | 735 |
|
733 | 736 | void moveToState(Fragment f, int newState, int transit, int transitionStyle, |
734 | 737 | boolean keepActive) { |
| 738 | + // TODO(cmautner): remove after fixing 6829431. |
| 739 | + if (DEBUG) Log.v(TAG, "moveToState: " + f |
| 740 | + + " oldState=" + f.mState + " newState=" + newState |
| 741 | + + " mRemoving=" + f.mRemoving + " Callers=" + Debug.getCallers(5)); |
735 | 742 | // Fragments that are not currently added will sit in the onCreate() state. |
736 | 743 | if (!f.mAdded && newState > Fragment.CREATED) { |
737 | 744 | newState = Fragment.CREATED; |
|
0 commit comments