aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk/src/main
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-10-13 10:30:08 +0200
committerpedroGitt <pedro.contreiras@amdocs.com>2016-10-13 10:30:08 +0200
commit618eab0086e9f0911fe6ee8071068b163bec4ecd (patch)
tree922ead3d854139148b7e27bf6785334d6b2f7428 /java/android/OlmLibSdk/olm-sdk/src/main
parent42c85adbc4ade043034d1cc620c49fc7583ed06b (diff)
Update SDK JAVA API making initNewAccount() private and called in the respective constructors
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk/src/main')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java4
-rw-r--r--java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmSession.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java
index e9eddc7..963f0a4 100644
--- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java
+++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmAccount.java
@@ -35,7 +35,7 @@ public class OlmAccount {
private long mNativeOlmAccountId;
public OlmAccount() {
- //initNewAccount();
+ initNewAccount();
}
/**
@@ -79,7 +79,7 @@ public class OlmAccount {
* To be called before any other API call.
* @return true if init succeed, false otherwise.
*/
- public boolean initNewAccount() {
+ private boolean initNewAccount() {
boolean retCode = false;
if(0 != (mNativeOlmAccountId = initNewAccountJni())){
retCode = true;
diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmSession.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmSession.java
index 0c2888c..06e2fcf 100644
--- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmSession.java
+++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmSession.java
@@ -31,7 +31,7 @@ public class OlmSession {
private OlmAccount mOlmAccount;
public OlmSession() {
- //initNewSession();
+ initNewSession();
}
/**
@@ -76,7 +76,7 @@ public class OlmSession {
* To be called before any other API call.
* @return true if init succeed, false otherwise.
*/
- public boolean initNewSession() {
+ private boolean initNewSession() {
boolean retCode = false;
if(0 != (mNativeOlmSessionId = initNewSessionJni())){
retCode = true;