We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c068412 commit 31a3159Copy full SHA for 31a3159
AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt
@@ -99,7 +99,10 @@ fun DeckPicker.syncAuth(): SyncAuth? {
99
100
fun getEndpoint(context: Context): String? {
101
val preferences = context.sharedPrefs()
102
- val currentEndpoint = preferences.getString(SyncPreferences.CURRENT_SYNC_URI, null)
+ val currentEndpoint =
103
+ preferences.getString(SyncPreferences.CURRENT_SYNC_URI, null)?.ifEmpty {
104
+ null
105
+ }
106
val customEndpoint =
107
if (preferences.getBoolean(SyncPreferences.CUSTOM_SYNC_ENABLED, false)) {
108
preferences.getString(SyncPreferences.CUSTOM_SYNC_URI, null)
0 commit comments