BackStackState.java 4.68 KB
package android.support.v4.app;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.text.TextUtils;
import android.util.Log;
import ch;
import ch.a;
import cn;
import java.util.ArrayList;

public final class BackStackState
  implements Parcelable
{
  public static final Parcelable.Creator<BackStackState> CREATOR = new Parcelable.Creator() {};
  final int[] a;
  final int b;
  final int c;
  final String d;
  final int e;
  final int f;
  final CharSequence g;
  final int h;
  final CharSequence i;
  final ArrayList<String> j;
  final ArrayList<String> k;
  final boolean l;
  
  public BackStackState(Parcel paramParcel)
  {
    this.a = paramParcel.createIntArray();
    this.b = paramParcel.readInt();
    this.c = paramParcel.readInt();
    this.d = paramParcel.readString();
    this.e = paramParcel.readInt();
    this.f = paramParcel.readInt();
    this.g = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
    this.h = paramParcel.readInt();
    this.i = ((CharSequence)TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(paramParcel));
    this.j = paramParcel.createStringArrayList();
    this.k = paramParcel.createStringArrayList();
    if (paramParcel.readInt() != 0) {}
    for (boolean bool = true;; bool = false)
    {
      this.l = bool;
      return;
    }
  }
  
  public BackStackState(ch paramch)
  {
    int i1 = paramch.c.size();
    this.a = new int[i1 * 6];
    if (!paramch.j) {
      throw new IllegalStateException("Not on back stack");
    }
    int m = 0;
    int n = 0;
    if (m < i1)
    {
      ch.a locala = (ch.a)paramch.c.get(m);
      int[] arrayOfInt = this.a;
      int i2 = n + 1;
      arrayOfInt[n] = locala.a;
      arrayOfInt = this.a;
      int i3 = i2 + 1;
      if (locala.b != null) {}
      for (n = locala.b.mIndex;; n = -1)
      {
        arrayOfInt[i2] = n;
        arrayOfInt = this.a;
        n = i3 + 1;
        arrayOfInt[i3] = locala.c;
        arrayOfInt = this.a;
        i2 = n + 1;
        arrayOfInt[n] = locala.d;
        arrayOfInt = this.a;
        i3 = i2 + 1;
        arrayOfInt[i2] = locala.e;
        arrayOfInt = this.a;
        n = i3 + 1;
        arrayOfInt[i3] = locala.f;
        m += 1;
        break;
      }
    }
    this.b = paramch.h;
    this.c = paramch.i;
    this.d = paramch.l;
    this.e = paramch.n;
    this.f = paramch.o;
    this.g = paramch.p;
    this.h = paramch.q;
    this.i = paramch.r;
    this.j = paramch.s;
    this.k = paramch.t;
    this.l = paramch.u;
  }
  
  public final ch a(cn paramcn)
  {
    int n = 0;
    ch localch = new ch(paramcn);
    int m = 0;
    if (n < this.a.length)
    {
      ch.a locala = new ch.a();
      int[] arrayOfInt = this.a;
      int i1 = n + 1;
      locala.a = arrayOfInt[n];
      if (cn.a) {
        Log.v("FragmentManager", "Instantiate " + localch + " op #" + m + " base fragment #" + this.a[i1]);
      }
      arrayOfInt = this.a;
      n = i1 + 1;
      i1 = arrayOfInt[i1];
      if (i1 >= 0) {}
      for (locala.b = ((Fragment)paramcn.e.get(i1));; locala.b = null)
      {
        arrayOfInt = this.a;
        i1 = n + 1;
        locala.c = arrayOfInt[n];
        arrayOfInt = this.a;
        n = i1 + 1;
        locala.d = arrayOfInt[i1];
        arrayOfInt = this.a;
        i1 = n + 1;
        locala.e = arrayOfInt[n];
        locala.f = this.a[i1];
        localch.d = locala.c;
        localch.e = locala.d;
        localch.f = locala.e;
        localch.g = locala.f;
        localch.a(locala);
        m += 1;
        n = i1 + 1;
        break;
      }
    }
    localch.h = this.b;
    localch.i = this.c;
    localch.l = this.d;
    localch.n = this.e;
    localch.j = true;
    localch.o = this.f;
    localch.p = this.g;
    localch.q = this.h;
    localch.r = this.i;
    localch.s = this.j;
    localch.t = this.k;
    localch.u = this.l;
    localch.a(1);
    return localch;
  }
  
  public final int describeContents()
  {
    return 0;
  }
  
  public final void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramInt = 0;
    paramParcel.writeIntArray(this.a);
    paramParcel.writeInt(this.b);
    paramParcel.writeInt(this.c);
    paramParcel.writeString(this.d);
    paramParcel.writeInt(this.e);
    paramParcel.writeInt(this.f);
    TextUtils.writeToParcel(this.g, paramParcel, 0);
    paramParcel.writeInt(this.h);
    TextUtils.writeToParcel(this.i, paramParcel, 0);
    paramParcel.writeStringList(this.j);
    paramParcel.writeStringList(this.k);
    if (this.l) {
      paramInt = 1;
    }
    paramParcel.writeInt(paramInt);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/app/BackStackState.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */