OsmAnd/OsmAnd-api/src/net/osmand/aidlapi/AidlParams.java

35 lines
662 B
Java
Raw Normal View History

2019-10-10 16:09:20 +02:00
package net.osmand.aidlapi;
2019-10-08 16:42:00 +02:00
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);
}
2019-10-10 16:09:20 +02:00
public final void readFromParcel(Parcel in) {
2019-10-08 16:42:00 +02:00
Bundle bundle = in.readBundle(getClass().getClassLoader());
if (bundle != null) {
readFromBundle(bundle);
}
}
2019-10-10 13:49:47 +02:00
protected void writeToBundle(Bundle bundle) {
}
2019-10-08 16:42:00 +02:00
protected void readFromBundle(Bundle bundle) {
}
@Override
public int describeContents() {
return 0;
}
}