Merge pull request #8903 from osmandapp/fix_8862
Update tracker aidl api
This commit is contained in:
commit
b905b7aa5c
3 changed files with 77 additions and 0 deletions
|
@ -95,6 +95,7 @@ import net.osmand.aidl.contextmenu.RemoveContextMenuButtonsParams;
|
|||
import net.osmand.aidl.mapmarker.RemoveMapMarkersParams;
|
||||
|
||||
import net.osmand.aidl.quickaction.QuickActionParams;
|
||||
import net.osmand.aidl.quickaction.QuickActionInfoParams;
|
||||
|
||||
// NOTE: Add new methods at the end of file!!!
|
||||
|
||||
|
@ -853,4 +854,6 @@ interface IOsmAndAidlInterface {
|
|||
boolean importProfile(in ProfileSettingsParams params);
|
||||
|
||||
boolean executeQuickAction(in QuickActionParams params);
|
||||
|
||||
boolean getQuickActionsInfo(out List<QuickActionInfoParams> quickActions);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
package net.osmand.aidl.quickaction;
|
||||
|
||||
parcelable QuickActionInfoParams;
|
|
@ -0,0 +1,71 @@
|
|||
package net.osmand.aidl.quickaction;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class QuickActionInfoParams implements Parcelable {
|
||||
|
||||
private int actionId;
|
||||
private String name;
|
||||
private String actionType;
|
||||
private String params;
|
||||
|
||||
public QuickActionInfoParams(int actionId, String name, String actionType, String params) {
|
||||
this.actionId = actionId;
|
||||
this.name = name;
|
||||
this.actionType = actionType;
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
public QuickActionInfoParams(Parcel in) {
|
||||
readFromParcel(in);
|
||||
}
|
||||
|
||||
public static final Creator<QuickActionInfoParams> CREATOR = new Creator<QuickActionInfoParams>() {
|
||||
@Override
|
||||
public QuickActionInfoParams createFromParcel(Parcel in) {
|
||||
return new QuickActionInfoParams(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public QuickActionInfoParams[] newArray(int size) {
|
||||
return new QuickActionInfoParams[size];
|
||||
}
|
||||
};
|
||||
|
||||
public int getActionId() {
|
||||
return actionId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getActionType() {
|
||||
return actionType;
|
||||
}
|
||||
|
||||
public String getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel out, int flags) {
|
||||
out.writeInt(actionId);
|
||||
out.writeString(name);
|
||||
out.writeString(actionType);
|
||||
out.writeString(params);
|
||||
}
|
||||
|
||||
private void readFromParcel(Parcel in) {
|
||||
actionId = in.readInt();
|
||||
name = in.readString();
|
||||
actionType = in.readString();
|
||||
params = in.readString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue