Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private boolean hasPreSharedKey(Context context) {
}
io.netbird.gomobile.android.Preferences preferences = new io.netbird.gomobile.android.Preferences(configFilePath);
try {
return !preferences.getPreSharedKey().isEmpty();
return preferences.hasPreSharedKey();
} catch (Exception e) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void applyServer(String managementUrl, String setupKey) {
setBusy(true);
Auth auth;
try {
auth = Android.newAuth(configPath, managementUrl);
auth = Android.newAuth(configPath, managementUrl, null);
} catch (Exception e) {
Log.e(TAG, "Failed to create authenticator", e);
setBusy(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void enrollWithSetupKey(Profile created, String managementUrl, String ke
setChecking(true);
Auth auth;
try {
auth = Android.newAuth(configPath, managementUrl);
auth = Android.newAuth(configPath, managementUrl, null);
} catch (Exception e) {
Log.e(TAG, "Failed to create authenticator", e);
setChecking(false);
Expand Down
Loading