| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.window; |
| 18 |
|
| 19 |
import android.os.Parcel; |
| 20 |
import android.os.Parcelable; |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
public class BackAnimationAdaptor implements Parcelable { |
| 28 |
|
| 29 |
private final IBackAnimationRunner mRunner; |
| 30 |
@BackNavigationInfo.BackTargetType |
| 31 |
private final int mSupportType; |
| 32 |
|
| 33 |
public BackAnimationAdaptor(IBackAnimationRunner runner, int supportType) { |
| 34 |
mRunner = runner; |
| 35 |
mSupportType = supportType; |
| 36 |
} |
| 37 |
|
| 38 |
public BackAnimationAdaptor(Parcel in) { |
| 39 |
mRunner = IBackAnimationRunner.Stub.asInterface(in.readStrongBinder()); |
| 40 |
mSupportType = in.readInt(); |
| 41 |
} |
| 42 |
|
| 43 |
public IBackAnimationRunner getRunner() { |
| 44 |
return mRunner; |
| 45 |
} |
| 46 |
|
| 47 |
@BackNavigationInfo.BackTargetType public int getSupportType() { |
| 48 |
return mSupportType; |
| 49 |
} |
| 50 |
|
| 51 |
@Override |
| 52 |
public int describeContents() { |
| 53 |
return 0; |
| 54 |
} |
| 55 |
|
| 56 |
@Override |
| 57 |
public void writeToParcel(Parcel dest, int flags) { |
| 58 |
dest.writeStrongInterface(mRunner); |
| 59 |
dest.writeInt(mSupportType); |
| 60 |
} |
| 61 |
|
| 62 |
public static final @android.annotation.NonNull Creator<BackAnimationAdaptor> CREATOR = |
| 63 |
new Creator<BackAnimationAdaptor>() { |
| 64 |
public BackAnimationAdaptor createFromParcel(Parcel in) { |
| 65 |
return new BackAnimationAdaptor(in); |
| 66 |
} |
| 67 |
|
| 68 |
public BackAnimationAdaptor[] newArray(int size) { |
| 69 |
return new BackAnimationAdaptor[size]; |
| 70 |
} |
| 71 |
}; |
| 72 |
} |