46 lines
No EOL
1 KiB
Java
46 lines
No EOL
1 KiB
Java
package net.osmand.aidlapi.mapwidget;
|
|
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
|
|
import net.osmand.aidlapi.AidlParams;
|
|
|
|
public class UpdateMapWidgetParams extends AidlParams {
|
|
|
|
private AMapWidget widget;
|
|
|
|
public UpdateMapWidgetParams(AMapWidget widget) {
|
|
this.widget = widget;
|
|
}
|
|
|
|
public UpdateMapWidgetParams(Parcel in) {
|
|
readFromParcel(in);
|
|
}
|
|
|
|
public static final Creator<UpdateMapWidgetParams> CREATOR = new Creator<UpdateMapWidgetParams>() {
|
|
@Override
|
|
public UpdateMapWidgetParams createFromParcel(Parcel in) {
|
|
return new UpdateMapWidgetParams(in);
|
|
}
|
|
|
|
@Override
|
|
public UpdateMapWidgetParams[] newArray(int size) {
|
|
return new UpdateMapWidgetParams[size];
|
|
}
|
|
};
|
|
|
|
public AMapWidget getWidget() {
|
|
return widget;
|
|
}
|
|
|
|
@Override
|
|
public void writeToBundle(Bundle bundle) {
|
|
bundle.putParcelable("widget", widget);
|
|
}
|
|
|
|
@Override
|
|
protected void readFromBundle(Bundle bundle) {
|
|
bundle.setClassLoader(AMapWidget.class.getClassLoader());
|
|
widget = bundle.getParcelable("widget");
|
|
}
|
|
} |