Update tracker aidl
This commit is contained in:
parent
b80a10b737
commit
d24f8d3a75
3 changed files with 54 additions and 0 deletions
|
@ -94,6 +94,8 @@ import net.osmand.aidl.contextmenu.RemoveContextMenuButtonsParams;
|
|||
|
||||
import net.osmand.aidl.mapmarker.RemoveMapMarkersParams;
|
||||
|
||||
import net.osmand.aidl.quickaction.QuickActionParams;
|
||||
|
||||
// NOTE: Add new methods at the end of file!!!
|
||||
|
||||
interface IOsmAndAidlInterface {
|
||||
|
@ -849,4 +851,6 @@ interface IOsmAndAidlInterface {
|
|||
boolean getGpxColor(inout GpxColorParams params);
|
||||
|
||||
boolean importProfile(in ProfileSettingsParams params);
|
||||
|
||||
boolean executeQuickAction(in QuickActionParams params);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
package net.osmand.aidl.quickaction;
|
||||
|
||||
parcelable QuickActionParams;
|
|
@ -0,0 +1,47 @@
|
|||
package net.osmand.aidl.quickaction;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
public class QuickActionParams implements Parcelable {
|
||||
|
||||
private int actionNumber;
|
||||
|
||||
public QuickActionParams(int actionNumber) {
|
||||
this.actionNumber = actionNumber;
|
||||
}
|
||||
|
||||
public QuickActionParams(Parcel in) {
|
||||
readFromParcel(in);
|
||||
}
|
||||
|
||||
public static final Creator<QuickActionParams> CREATOR = new Creator<QuickActionParams>() {
|
||||
@Override
|
||||
public QuickActionParams createFromParcel(Parcel in) {
|
||||
return new QuickActionParams(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public QuickActionParams[] newArray(int size) {
|
||||
return new QuickActionParams[size];
|
||||
}
|
||||
};
|
||||
|
||||
public int getActionNumber() {
|
||||
return actionNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToParcel(Parcel out, int flags) {
|
||||
out.writeInt(actionNumber);
|
||||
}
|
||||
|
||||
private void readFromParcel(Parcel in) {
|
||||
actionNumber = in.readInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue