Skip to content

Commit f64fcbe

Browse files
authored
Merge pull request #291 from Backendless/prefs_version
Backendless keys not initialized
2 parents a50df82 + 274588d commit f64fcbe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/com/backendless/AndroidBackendlessPrefs.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public AndroidBackendlessPrefs()
2222
super();
2323
}
2424

25-
public void initPreferences( String applicationId, String secretKey, String version )
25+
public void initPreferences( String applicationId, String secretKey )
2626
{
2727
super.initPreferences( applicationId, secretKey );
2828
saveAuthKeysToPreferences( authKeys );
@@ -97,9 +97,8 @@ private boolean restoreAuthKeysFromPreferences()
9797
{
9898
String applicationId = sharedPreferences.getString( Type.APPLICATION_ID.name64(), null );
9999
String secretKey = sharedPreferences.getString( Type.SECRET_KEY.name64(), null );
100-
String version = sharedPreferences.getString( Type.VERSION.name64(), null );
101100

102-
if( applicationId != null && secretKey != null && version != null )
101+
if( applicationId != null && secretKey != null )
103102
{
104103
authKeys = new AuthKeys( applicationId, secretKey );
105104
return true;
@@ -145,7 +144,6 @@ enum Type
145144
{
146145
APPLICATION_ID,
147146
SECRET_KEY,
148-
VERSION,
149147
HEADERS;
150148

151149
String name64()

0 commit comments

Comments
 (0)