Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1acbfa3 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

1128-remove_e_drive_reset_service_call

parent b4e4f78e
Loading
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -118,24 +118,6 @@ class EeloAccountAuthenticatorService : Service(), OnAccountsUpdateListener {
            ).appDatabase()

            cleanupAccounts(applicationContext, db)

            val eeloAccounts = ArrayList<Account>(accounts?.asList() ?: emptyList())
            eeloAccounts.removeIf { it.type != getString(R.string.eelo_account_type) }
            eeloAccounts.removeAll(
                accountManager.getAccountsByType(
                    getString(
                        R.string.eelo_account_type
                    )
                ).toSet()
            )

            for (removedAccount in eeloAccounts) {
                val intent = Intent("drive.services.ResetService")
                intent.setPackage(getString(R.string.e_drive_package_name))
                intent.putExtra(AccountManager.KEY_ACCOUNT_NAME, removedAccount.name)
                intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, removedAccount.type)
                startService(intent)
            }
        }
    }