summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
index 6154956610..55342ea166 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt
@@ -90,6 +90,13 @@ class AccountCache(val daemon: MullvadDaemon, val settingsListener: SettingsList
}
}
+ fun removeAccountFromHistory(accountToken: String) {
+ jobTracker.newBackgroundJob("removeAccountFromHistory $accountToken") {
+ daemon.removeAccountFromHistory(accountToken)
+ fetchAccountHistory()
+ }
+ }
+
fun onDestroy() {
settingsListener.accountNumberNotifier.unsubscribe(this)
jobTracker.cancelAllJobs()