mirror of
https://github.com/etesync/android
synced 2025-01-11 08:10:58 +00:00
parent
2867d1564c
commit
93f0e17144
@ -192,9 +192,11 @@ class LocalAddressBook(
|
||||
|
||||
fun delete() {
|
||||
val accountManager = AccountManager.get(context)
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP_MR1)
|
||||
if (Build.VERSION.SDK_INT >= 22)
|
||||
accountManager.removeAccount(account, null, null, null)
|
||||
accountManager.removeAccountExplicitly(account)
|
||||
else
|
||||
accountManager.removeAccount(account, null, null)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user