Games: Resolved the issue preventing some games from logging in (#2223)
Co-authored-by: Marvin W <git@larma.de>
This commit is contained in:
parent
e8b00c1a70
commit
900a63af3e
2 changed files with 8 additions and 1 deletions
|
|
@ -396,6 +396,13 @@
|
|||
|
||||
<!-- Games -->
|
||||
|
||||
<activity
|
||||
android:name="org.microg.gms.games.GamesSignInActivity"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:process=":ui"
|
||||
android:theme="@style/Theme.Translucent"/>
|
||||
|
||||
<activity
|
||||
android:name="org.microg.gms.games.UpgradeActivity"
|
||||
android:process=":ui"
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class AuthSignInActivity : AppCompatActivity() {
|
|||
Log.d(TAG, "Request: $config")
|
||||
|
||||
val packageName = config?.packageName
|
||||
if (packageName == null || (packageName != callingActivity?.packageName && callingActivity?.packageName != packageName))
|
||||
if (packageName == null || (packageName != callingActivity?.packageName && callingActivity?.packageName != this.packageName))
|
||||
return finishResult(CommonStatusCodes.DEVELOPER_ERROR, "package name mismatch")
|
||||
val accountManager = getSystemService<AccountManager>() ?: return finishResult(CommonStatusCodes.INTERNAL_ERROR, "No account manager")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue