Exemple #1
0
 void a(int paramInt) {
   if (!this.o) ;
   while (true) {
     return;
     if (FragmentManagerImpl.DEBUG)
       Log.v("BackStackEntry", "Bump nesting in " + this + " by " + paramInt);
     for (BackStackRecord.Op localOp = this.f; localOp != null; localOp = localOp.v) {
       if (localOp.B != null) {
         Fragment localFragment2 = localOp.B;
         localFragment2.mBackStackNesting = (paramInt + localFragment2.mBackStackNesting);
         if (FragmentManagerImpl.DEBUG)
           Log.v(
               "BackStackEntry",
               "Bump nesting of " + localOp.B + " to " + localOp.B.mBackStackNesting);
       }
       if (localOp.G != null)
         for (int i1 = -1 + localOp.G.size(); i1 >= 0; i1--) {
           Fragment localFragment1 = (Fragment) localOp.G.get(i1);
           localFragment1.mBackStackNesting = (paramInt + localFragment1.mBackStackNesting);
           if (FragmentManagerImpl.DEBUG)
             Log.v(
                 "BackStackEntry",
                 "Bump nesting of " + localFragment1 + " to " + localFragment1.mBackStackNesting);
         }
     }
   }
 }
Exemple #2
0
 public void dump(
     String paramString,
     FileDescriptor paramFileDescriptor,
     PrintWriter paramPrintWriter,
     String[] paramArrayOfString) {
   paramPrintWriter.print(paramString);
   paramPrintWriter.print("mName=");
   paramPrintWriter.print(this.mName);
   paramPrintWriter.print(" mIndex=");
   paramPrintWriter.print(this.mIndex);
   paramPrintWriter.print(" mCommitted=");
   paramPrintWriter.println(this.q);
   if (this.m != 0) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.print("mTransition=#");
     paramPrintWriter.print(Integer.toHexString(this.m));
     paramPrintWriter.print(" mTransitionStyle=#");
     paramPrintWriter.println(Integer.toHexString(this.n));
   }
   if ((this.i != 0) || (this.j != 0)) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.print("mEnterAnim=#");
     paramPrintWriter.print(Integer.toHexString(this.i));
     paramPrintWriter.print(" mExitAnim=#");
     paramPrintWriter.println(Integer.toHexString(this.j));
   }
   if ((this.k != 0) || (this.l != 0)) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.print("mPopEnterAnim=#");
     paramPrintWriter.print(Integer.toHexString(this.k));
     paramPrintWriter.print(" mPopExitAnim=#");
     paramPrintWriter.println(Integer.toHexString(this.l));
   }
   if ((this.r != 0) || (this.s != null)) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.print("mBreadCrumbTitleRes=#");
     paramPrintWriter.print(Integer.toHexString(this.r));
     paramPrintWriter.print(" mBreadCrumbTitleText=");
     paramPrintWriter.println(this.s);
   }
   if ((this.t != 0) || (this.u != null)) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.print("mBreadCrumbShortTitleRes=#");
     paramPrintWriter.print(Integer.toHexString(this.t));
     paramPrintWriter.print(" mBreadCrumbShortTitleText=");
     paramPrintWriter.println(this.u);
   }
   if (this.f != null) {
     paramPrintWriter.print(paramString);
     paramPrintWriter.println("Operations:");
     String str = paramString + "    ";
     for (BackStackRecord.Op localOp = this.f; localOp != null; localOp = localOp.v) {
       paramPrintWriter.print(paramString);
       paramPrintWriter.print("  Op #");
       paramPrintWriter.print(0);
       paramPrintWriter.println(":");
       paramPrintWriter.print(str);
       paramPrintWriter.print("cmd=");
       paramPrintWriter.print(localOp.A);
       paramPrintWriter.print(" fragment=");
       paramPrintWriter.println(localOp.B);
       if ((localOp.C != 0) || (localOp.D != 0)) {
         paramPrintWriter.print(paramString);
         paramPrintWriter.print("enterAnim=#");
         paramPrintWriter.print(Integer.toHexString(localOp.C));
         paramPrintWriter.print(" exitAnim=#");
         paramPrintWriter.println(Integer.toHexString(localOp.D));
       }
       if ((localOp.E != 0) || (localOp.F != 0)) {
         paramPrintWriter.print(paramString);
         paramPrintWriter.print("popEnterAnim=#");
         paramPrintWriter.print(Integer.toHexString(localOp.E));
         paramPrintWriter.print(" popExitAnim=#");
         paramPrintWriter.println(Integer.toHexString(localOp.F));
       }
       if ((localOp.G != null) && (localOp.G.size() > 0)) {
         int i1 = 0;
         if (i1 < localOp.G.size()) {
           paramPrintWriter.print(str);
           if (localOp.G.size() == 1) paramPrintWriter.print("Removed: ");
           while (true) {
             paramPrintWriter.println(localOp.G.get(i1));
             i1++;
             break;
             paramPrintWriter.println("Removed:");
             paramPrintWriter.print(str);
             paramPrintWriter.print("  #");
             paramPrintWriter.print(0);
             paramPrintWriter.print(": ");
           }
         }
       }
     }
   }
 }
Exemple #3
0
 public void run() {
   if (FragmentManagerImpl.DEBUG) Log.v("BackStackEntry", "Run: " + this);
   if ((this.o) && (this.mIndex < 0))
     throw new IllegalStateException("addToBackStack() called after commit()");
   a(1);
   BackStackRecord.Op localOp = this.f;
   if (localOp != null) {
     switch (localOp.A) {
       default:
         throw new IllegalArgumentException("Unknown cmd: " + localOp.A);
       case 1:
         Fragment localFragment9 = localOp.B;
         localFragment9.mNextAnim = localOp.C;
         this.e.a(localFragment9, false);
       case 2:
       case 3:
       case 4:
       case 5:
       case 6:
       case 7:
     }
     while (true) {
       localOp = localOp.v;
       break;
       Fragment localFragment6 = localOp.B;
       Fragment localFragment7;
       if (this.e.ae != null) {
         int i1 = 0;
         localFragment7 = localFragment6;
         if (i1 < this.e.ae.size()) {
           Fragment localFragment8 = (Fragment) this.e.ae.get(i1);
           if (FragmentManagerImpl.DEBUG)
             Log.v(
                 "BackStackEntry",
                 "OP_REPLACE: adding=" + localFragment7 + " old=" + localFragment8);
           if ((localFragment7 == null)
               || (localFragment8.mContainerId == localFragment7.mContainerId)) {
             if (localFragment8 != localFragment7) break label317;
             localFragment7 = null;
             localOp.B = null;
           }
           while (true) {
             i1++;
             break;
             label317:
             if (localOp.G == null) localOp.G = new ArrayList();
             localOp.G.add(localFragment8);
             localFragment8.mNextAnim = localOp.D;
             if (this.o) {
               localFragment8.mBackStackNesting = (1 + localFragment8.mBackStackNesting);
               if (FragmentManagerImpl.DEBUG)
                 Log.v(
                     "BackStackEntry",
                     "Bump nesting of "
                         + localFragment8
                         + " to "
                         + localFragment8.mBackStackNesting);
             }
             this.e.a(localFragment8, this.m, this.n);
           }
         }
       } else {
         localFragment7 = localFragment6;
       }
       if (localFragment7 != null) {
         localFragment7.mNextAnim = localOp.C;
         this.e.a(localFragment7, false);
         continue;
         Fragment localFragment5 = localOp.B;
         localFragment5.mNextAnim = localOp.D;
         this.e.a(localFragment5, this.m, this.n);
         continue;
         Fragment localFragment4 = localOp.B;
         localFragment4.mNextAnim = localOp.D;
         this.e.b(localFragment4, this.m, this.n);
         continue;
         Fragment localFragment3 = localOp.B;
         localFragment3.mNextAnim = localOp.C;
         this.e.c(localFragment3, this.m, this.n);
         continue;
         Fragment localFragment2 = localOp.B;
         localFragment2.mNextAnim = localOp.D;
         this.e.d(localFragment2, this.m, this.n);
         continue;
         Fragment localFragment1 = localOp.B;
         localFragment1.mNextAnim = localOp.C;
         this.e.e(localFragment1, this.m, this.n);
       }
     }
   }
   this.e.a(this.e.al, this.m, this.n, true);
   if (this.o) this.e.b(this);
 }
Exemple #4
0
 public void b(boolean paramBoolean) {
   if (FragmentManagerImpl.DEBUG) Log.v("BackStackEntry", "popFromBackStack: " + this);
   a(-1);
   BackStackRecord.Op localOp = this.g;
   if (localOp != null) {
     switch (localOp.A) {
       default:
         throw new IllegalArgumentException("Unknown cmd: " + localOp.A);
       case 1:
         Fragment localFragment8 = localOp.B;
         localFragment8.mNextAnim = localOp.F;
         this.e.a(localFragment8, FragmentManagerImpl.f(this.m), this.n);
       case 2:
       case 3:
       case 4:
       case 5:
       case 6:
       case 7:
     }
     while (true) {
       localOp = localOp.z;
       break;
       Fragment localFragment6 = localOp.B;
       if (localFragment6 != null) {
         localFragment6.mNextAnim = localOp.F;
         this.e.a(localFragment6, FragmentManagerImpl.f(this.m), this.n);
       }
       if (localOp.G != null) {
         for (int i1 = 0; i1 < localOp.G.size(); i1++) {
           Fragment localFragment7 = (Fragment) localOp.G.get(i1);
           localFragment7.mNextAnim = localOp.E;
           this.e.a(localFragment7, false);
         }
         Fragment localFragment5 = localOp.B;
         localFragment5.mNextAnim = localOp.E;
         this.e.a(localFragment5, false);
         continue;
         Fragment localFragment4 = localOp.B;
         localFragment4.mNextAnim = localOp.E;
         this.e.c(localFragment4, FragmentManagerImpl.f(this.m), this.n);
         continue;
         Fragment localFragment3 = localOp.B;
         localFragment3.mNextAnim = localOp.F;
         this.e.b(localFragment3, FragmentManagerImpl.f(this.m), this.n);
         continue;
         Fragment localFragment2 = localOp.B;
         localFragment2.mNextAnim = localOp.E;
         this.e.e(localFragment2, FragmentManagerImpl.f(this.m), this.n);
         continue;
         Fragment localFragment1 = localOp.B;
         localFragment1.mNextAnim = localOp.E;
         this.e.d(localFragment1, FragmentManagerImpl.f(this.m), this.n);
       }
     }
   }
   if (paramBoolean) this.e.a(this.e.al, FragmentManagerImpl.f(this.m), this.n, true);
   if (this.mIndex >= 0) {
     this.e.e(this.mIndex);
     this.mIndex = -1;
   }
 }