int commitInternal(boolean allowStateLoss) { if (this.mCommitted) { throw new IllegalStateException("commit already called"); } if (FragmentManagerImpl.DEBUG) { Log.v(TAG, "Commit: " + this); dump(" ", null, new PrintWriter(new LogWriter(TAG)), null); } this.mCommitted = true; if (this.mAddToBackStack) { this.mIndex = this.mManager.allocBackStackIndex(this); } else { this.mIndex = -1; } this.mManager.enqueueAction(this, allowStateLoss); return this.mIndex; }
private int commitInternal(boolean paramBoolean) { if (this.mCommitted) { throw new IllegalStateException("commit already called"); } if (FragmentManagerImpl.DEBUG) { Log.v("FragmentManager", "Commit: " + this); dump$ec96877(" ", new PrintWriter(new LogWriter("FragmentManager"))); } this.mCommitted = true; if (this.mAddToBackStack) {} for (this.mIndex = this.mManager.allocBackStackIndex(this);; this.mIndex = -1) { this.mManager.enqueueAction(this, paramBoolean); return this.mIndex; } }
int commitInternal(boolean allowStateLoss) { if (mCommitted) throw new IllegalStateException("commit already called"); if (FragmentManagerImpl.DEBUG) { Log.v(TAG, "Commit: " + this); LogWriter logw = new LogWriter(TAG); PrintWriter pw = new PrintWriter(logw); dump(" ", null, pw, null); } mCommitted = true; if (mAddToBackStack) { mIndex = mManager.allocBackStackIndex(this); } else { mIndex = -1; } mManager.enqueueAction(this, allowStateLoss); return mIndex; }
int a(boolean flag) { if (w) { throw new IllegalStateException("commit already called"); } if (v.a) { Log.v("FragmentManager", (new StringBuilder()).append("Commit: ").append(this).toString()); a(" ", ((FileDescriptor) (null)), new PrintWriter(new LogWriter("FragmentManager")), ((String []) (null))); } w = true; if (t) { x = b.a(this); } else { x = -1; } b.a(this, flag); return x; }
int commitInternal(boolean flag) { if (mCommitted) { throw new IllegalStateException("commit already called"); } if (FragmentManagerImpl.DEBUG) { Log.v("FragmentManager", (new StringBuilder()).append("Commit: ").append(this).toString()); dump(" ", null, new PrintWriter(new LogWriter("FragmentManager")), null); } mCommitted = true; if (mAddToBackStack) { mIndex = mManager.allocBackStackIndex(this); } else { mIndex = -1; } mManager.enqueueAction(this, flag); return mIndex; }
private void throwException(RuntimeException paramRuntimeException) { Log.e("FragmentManager", paramRuntimeException.getMessage()); Log.e("FragmentManager", "Activity state:"); PrintWriter localPrintWriter = new PrintWriter(new LogWriter("FragmentManager")); if (this.mHost != null) {} for (;;) { try { this.mHost.onDump$ec96877(" ", localPrintWriter, new String[0]); throw paramRuntimeException; } catch (Exception localException2) { Log.e("FragmentManager", "Failed dumping state", localException2); continue; } try { dump(" ", null, localPrintWriter, new String[0]); } catch (Exception localException1) { Log.e("FragmentManager", "Failed dumping state", localException1); } } }
private void a(RuntimeException runtimeexception) { Log.e("FragmentManager", runtimeexception.getMessage()); Log.e("FragmentManager", "Activity state:"); PrintWriter printwriter = new PrintWriter(new LogWriter("FragmentManager")); if (t != null) { try { t.dump(" ", null, printwriter, new String[0]); } catch (Exception exception1) { Log.e("FragmentManager", "Failed dumping state", exception1); } } else { try { dump(" ", null, printwriter, new String[0]); } catch (Exception exception) { Log.e("FragmentManager", "Failed dumping state", exception); } } throw runtimeexception; }
/***************************************************** * * Logs the back stack, for debugging. * *****************************************************/ protected void logFragments() { mFragmentManager.dump( "", null, new PrintWriter( new LogWriter( "" ) ), new String[] {} ); }