Skip to content

Commit 5acf025

Browse files
committed
using a list of deleted keys instead
1 parent bb26d5b commit 5acf025

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

app/src/main/java/com/duckduckgo/app/browser/weblocalstorage/WebLocalStorageManager.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,9 @@ class DuckDuckGoWebLocalStorageManager @Inject constructor(
8989
db.delete(entry.key)
9090
logcat { "WebLocalStorageManager: Deleted key: $key" }
9191
} else if (settingsDataStore.clearDuckAiData && domainForMatchingAllowedKey == DUCKDUCKGO_DOMAIN) {
92-
if (key.endsWith("duckaiHasAgreedToTerms")) {
93-
logcat { "WebLocalStorageManager: Don't delete key: $key" }
94-
} else {
95-
if (keysToDelete.any { key.endsWith(it) }) {
96-
db.delete(entry.key)
97-
logcat { "WebLocalStorageManager: Deleted key: $key" }
98-
}
92+
if (keysToDelete.any { key.endsWith(it) }) {
93+
db.delete(entry.key)
94+
logcat { "WebLocalStorageManager: Deleted key: $key" }
9995
}
10096
}
10197
}

privacy-config/privacy-config-impl/src/main/java/com/duckduckgo/privacy/config/impl/network/PrivacyConfigService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ package com.duckduckgo.privacy.config.impl.network
1818

1919
import com.duckduckgo.anvil.annotations.ContributesServiceApi
2020
import com.duckduckgo.di.scopes.AppScope
21-
import com.duckduckgo.privacy.config.api.PRIVACY_REMOTE_CONFIG_URL
2221
import com.duckduckgo.privacy.config.impl.models.JsonPrivacyConfig
2322
import retrofit2.Response
2423
import retrofit2.http.GET
2524

2625
@ContributesServiceApi(AppScope::class)
2726
interface PrivacyConfigService {
28-
@GET(PRIVACY_REMOTE_CONFIG_URL)
27+
// @GET(PRIVACY_REMOTE_CONFIG_URL)
28+
@GET("http://jsonblob.com/api/1415429107323428864")
2929
suspend fun privacyConfig(): Response<JsonPrivacyConfig>
3030
}

0 commit comments

Comments
 (0)