diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-09-17 15:43:44 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-09-25 11:43:22 +0000 |
| commit | 4b6056c389c47b5cb81e614c686f924855973c00 (patch) | |
| tree | 12a89e94661a6ba0978e5ec7ac7120e598e1ea62 /android/src | |
| parent | b7b94749a385c5517fbf1fc8d41aa5044c372f18 (diff) | |
| download | mullvadvpn-4b6056c389c47b5cb81e614c686f924855973c00.tar.xz mullvadvpn-4b6056c389c47b5cb81e614c686f924855973c00.zip | |
Add `AccountCache.removeAccountFromHistory` method
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/AccountCache.kt | 7 |
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() |
