From 59a673031f4014b7620b3c32da2ba8c6aa2909c1 Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 14 Oct 2019 14:00:07 +0300 Subject: [PATCH] Add missing voice navigation params getters --- OsmAnd-api/build.gradle | 2 +- .../aidlapi/navigation/OnVoiceNavigationParams.java | 8 ++++++++ .../osmand/aidl/navigation/OnVoiceNavigationParams.java | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/OsmAnd-api/build.gradle b/OsmAnd-api/build.gradle index e8738d53fe..e77c765ff1 100644 --- a/OsmAnd-api/build.gradle +++ b/OsmAnd-api/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' group = 'com.github.osmandapp' -version = '2.0.1' +version = '2.0.0' android { compileSdkVersion 27 diff --git a/OsmAnd-api/src/net/osmand/aidlapi/navigation/OnVoiceNavigationParams.java b/OsmAnd-api/src/net/osmand/aidlapi/navigation/OnVoiceNavigationParams.java index f01db63133..3c745684dd 100644 --- a/OsmAnd-api/src/net/osmand/aidlapi/navigation/OnVoiceNavigationParams.java +++ b/OsmAnd-api/src/net/osmand/aidlapi/navigation/OnVoiceNavigationParams.java @@ -42,6 +42,14 @@ public class OnVoiceNavigationParams extends AidlParams { } }; + public List getCommands() { + return cmds; + } + + public List getPlayed() { + return played; + } + @Override public void writeToBundle(Bundle bundle) { bundle.putStringArrayList("cmds", cmds); diff --git a/OsmAnd/src/net/osmand/aidl/navigation/OnVoiceNavigationParams.java b/OsmAnd/src/net/osmand/aidl/navigation/OnVoiceNavigationParams.java index 20fd34e13e..523fe0b682 100644 --- a/OsmAnd/src/net/osmand/aidl/navigation/OnVoiceNavigationParams.java +++ b/OsmAnd/src/net/osmand/aidl/navigation/OnVoiceNavigationParams.java @@ -37,6 +37,14 @@ public class OnVoiceNavigationParams implements Parcelable { } }; + public List getCommands() { + return cmds; + } + + public List getPlayed() { + return played; + } + @Override public void writeToParcel(Parcel out, int flags) { out.writeStringList(cmds);