ParcelableCompat.java
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package android.support.v4.os;
import android.os.Build.VERSION;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import dr;
public final class ParcelableCompat
{
public static <T> Parcelable.Creator<T> newCreator(ParcelableCompatCreatorCallbacks<T> paramParcelableCompatCreatorCallbacks)
{
if (Build.VERSION.SDK_INT >= 13) {
return new dr(paramParcelableCompatCreatorCallbacks);
}
return new a(paramParcelableCompatCreatorCallbacks);
}
static final class a<T>
implements Parcelable.Creator<T>
{
final ParcelableCompatCreatorCallbacks<T> a;
public a(ParcelableCompatCreatorCallbacks<T> paramParcelableCompatCreatorCallbacks)
{
this.a = paramParcelableCompatCreatorCallbacks;
}
public final T createFromParcel(Parcel paramParcel)
{
return (T)this.a.createFromParcel(paramParcel, null);
}
public final T[] newArray(int paramInt)
{
return this.a.newArray(paramInt);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/os/ParcelableCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/