Skip to content

Commit d679c2c

Browse files
committed
Refactor to align with ios lib
1 parent af4ce7c commit d679c2c

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/BaseSdlManager.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ abstract class BaseSdlManager {
8383
static final String TAG = "BaseSubManager";
8484
final Object STATE_LOCK = new Object();
8585
int state = -1;
86-
String appId, appName, shortAppName, hashId;
86+
String appId, appName, shortAppName, resumeHash;
8787
boolean isMediaApp;
8888
Language hmiLanguage;
8989
Language language;
@@ -333,7 +333,7 @@ public void start() {
333333
appConfig.setAppID(appId);
334334
appConfig.setMinimumProtocolVersion(minimumProtocolVersion);
335335
appConfig.setMinimumRPCVersion(minimumRPCVersion);
336-
appConfig.setHashId(hashId);
336+
appConfig.setResumeHash(resumeHash);
337337

338338
lifecycleManager = new LifecycleManager(appConfig, transport, lifecycleListener);
339339
_internalInterface = lifecycleManager.getInternalInterface((SdlManager) BaseSdlManager.this);
@@ -633,10 +633,10 @@ public Builder setAppId(@NonNull final String appId) {
633633
/**
634634
* Sets the Resumption Hash ID
635635
*
636-
* @param hashId String representation of the Hash ID Used to resume the application
636+
* @param resumeHash String representation of the Hash ID Used to resume the application
637637
*/
638-
public Builder setHashId(final String hashId) {
639-
sdlManager.hashId = hashId;
638+
public Builder setResumeHash(final String resumeHash) {
639+
sdlManager.resumeHash = resumeHash;
640640
return this;
641641
}
642642

base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseLifecycleManager.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ public interface LifecycleListener {
11861186
}
11871187

11881188
public static class AppConfig {
1189-
private String appID, appName, ngnMediaScreenAppName, hashId;
1189+
private String appID, appName, ngnMediaScreenAppName, resumeHash;
11901190
private Vector<TTSChunk> ttsName;
11911191
private Vector<String> vrSynonyms;
11921192
private boolean isMediaApp = false;
@@ -1287,12 +1287,12 @@ public void setAppType(Vector<AppHMIType> appType) {
12871287
this.appType = appType;
12881288
}
12891289

1290-
public String getHashId() {
1291-
return this.hashId;
1290+
public String getResumeHash() {
1291+
return this.resumeHash;
12921292
}
12931293

1294-
public void setHashId(String hashId) {
1295-
this.hashId = hashId;
1294+
public void setResumeHash(String resumeHash) {
1295+
this.resumeHash = resumeHash;
12961296
}
12971297

12981298
public TemplateColorScheme getDayColorScheme() {
@@ -1513,7 +1513,7 @@ void onProtocolSessionStarted(SessionType sessionType) {
15131513
rai.setAppHMIType(appConfig.getAppType());
15141514
rai.setDayColorScheme(appConfig.getDayColorScheme());
15151515
rai.setNightColorScheme(appConfig.getNightColorScheme());
1516-
rai.setHashID(appConfig.getHashId());
1516+
rai.setHashID(appConfig.getResumeHash());
15171517

15181518
//Add device/system info in the future
15191519

0 commit comments

Comments
 (0)