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

Commit 9c7e8918 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Rename canSetupAuthData() to initAuthData()

parent f56c57a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ class AgeRatingProvider : ContentProvider() {
            withContext(IO) {
                try {
                    if (packageNames.isEmpty()) return@withContext cursor
                    canSetupAuthData()
                    initAuthData()

                    ensureAgeGroupDataExists()
                    compileAppBlockList(cursor, packageNames)
@@ -197,7 +197,7 @@ class AgeRatingProvider : ContentProvider() {
     * Setup AuthData for other APIs to access,
     * if user has logged in with Google or Anonymous mode.
     */
    private fun canSetupAuthData() {
    private fun initAuthData() {
        val authData = dataStoreManager.getAuthData()
        if (authData.email.isNotBlank() && authData.authToken.isNotBlank()) {
            authenticatorRepository.setGPlayAuth(authData)