wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
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
package net.osmand.aidlapi;
 
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
 
public abstract class AidlParams implements Parcelable {
 
    @Override
    public final void writeToParcel(Parcel dest, int flags) {
        Bundle bundle = new Bundle();
        writeToBundle(bundle);
        dest.writeBundle(bundle);
    }
 
    public final void readFromParcel(Parcel in) {
        Bundle bundle = in.readBundle(getClass().getClassLoader());
        if (bundle != null) {
            readFromBundle(bundle);
        }
    }
 
    protected void writeToBundle(Bundle bundle) {
 
    }
 
    protected void readFromBundle(Bundle bundle) {
 
    }
 
    @Override
    public int describeContents() {
        return 0;
    }
}