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

Commit 631bebdb authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Do not try to refresh token

when user is using his own Google account.
parent bd26fa8e
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -150,7 +150,8 @@ class PlayStoreRepository @Inject constructor(
            var appDetails: GplayApp
            appDetails = getAppDetailsHelper().getAppByPackageName(packageName)

            if (!isEmulator() && appDetails.versionCode == 0) {
            if (!isEmulator() && appDetails.versionCode == 0
                && authenticatorRepository.getGPlayAuthOrThrow().isAnonymous) {
                // Google Play returns limited result ( i.e. version code being 0) with a stale token,
                // so we need to refresh authentication to get a new token.
                Timber.i("Version code is 0 for ${appDetails.packageName}.")