summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBretty White <geekman3454@protonmail.com>2018-07-11 10:51:12 -0400
committerBretty White <geekman3454@protonmail.com>2018-07-11 10:51:12 -0400
commitbab504613f12c8db171f7a165048298fb94bb96b (patch)
tree295745dcae5af3d428552e2907c6642136acbc5f
parentfdda10b255f007cf495cb41634f6ecf8ca2ff15f (diff)
downloadsdl_android-bab504613f12c8db171f7a165048298fb94bb96b.tar.gz
added new params
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java9
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java5
2 files changed, 10 insertions, 4 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java b/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java
index 99f0accde..7ae323dfa 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java
@@ -48,7 +48,7 @@ public class SdlManager implements ProxyBridge.LifecycleListener {
private SdlProxyBase proxy;
// Required parameters for builder
- private String appId, appName;
+ private String appId, appName, shortAppName;
private boolean isMediaApp;
private Language hmiLanguage;
private Vector<AppHMIType> hmiTypes;
@@ -117,6 +117,11 @@ public class SdlManager implements ProxyBridge.LifecycleListener {
return this;
}
+ public Builder setShortAppName(final String shortAppName) {
+ sdlManager.shortAppName = shortAppName;
+ return this;
+ }
+
public Builder setIsMediaApp(final Boolean isMediaApp){
sdlManager.isMediaApp = isMediaApp;
return this;
@@ -164,7 +169,7 @@ public class SdlManager implements ProxyBridge.LifecycleListener {
public SdlManager build() {
try {
sdlManager.initialize();
- sdlManager.proxy = new SdlProxyBase(sdlManager.proxyBridge, sdlManager.appName, sdlManager.isMediaApp, sdlManager.hmiLanguage, sdlManager.hmiLanguage, sdlManager.hmiTypes, sdlManager.appId, sdlManager.transport, sdlManager.vrSynonyms, sdlManager.ttsChunks) {};
+ sdlManager.proxy = new SdlProxyBase(sdlManager.proxyBridge, sdlManager.appName, sdlManager.shortAppName, sdlManager.isMediaApp, sdlManager.hmiLanguage, sdlManager.hmiLanguage, sdlManager.hmiTypes, sdlManager.appId, sdlManager.transport, sdlManager.vrSynonyms, sdlManager.ttsChunks) {};
} catch (SdlException e) {
e.printStackTrace();
}
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java
index da7e2b181..bb1b3add6 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java
@@ -602,9 +602,10 @@ public abstract class SdlProxyBase<proxyListenerType extends IProxyListenerBase>
}
}
- public SdlProxyBase(proxyListenerType listener, String appName, Boolean isMediaApp, Language languageDesired, Language hmiDisplayLanguageDesired, Vector<AppHMIType> appType, String appID,
+ // Used by SDLManager
+ public SdlProxyBase(proxyListenerType listener, String appName,String shortAppName, Boolean isMediaApp, Language languageDesired, Language hmiDisplayLanguageDesired, Vector<AppHMIType> appType, String appID,
BaseTransportConfig transportConfig, Vector<String> vrSynonyms, Vector<TTSChunk> ttsName) throws SdlException {
- performBaseCommon(listener, null, true, appName, ttsName, null, vrSynonyms, isMediaApp,
+ performBaseCommon(listener, null, true, appName, ttsName, shortAppName, vrSynonyms, isMediaApp,
null, languageDesired, hmiDisplayLanguageDesired, appType, appID, null, null,null, false, false, null, null, transportConfig);
}