From d4ed40146dbff4fcbbaee904ae568a3dc77811eb Mon Sep 17 00:00:00 2001 From: davinci9196 Date: Fri, 26 Jan 2024 11:57:10 +0800 Subject: [PATCH] Fixed the problem of crashing when sharing photos through links in [photos album] --- .../kotlin/org/microg/gms/phenotype/PhenotypeService.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/play-services-core/src/main/kotlin/org/microg/gms/phenotype/PhenotypeService.kt b/play-services-core/src/main/kotlin/org/microg/gms/phenotype/PhenotypeService.kt index af32eafedf..3f55b0a56f 100644 --- a/play-services-core/src/main/kotlin/org/microg/gms/phenotype/PhenotypeService.kt +++ b/play-services-core/src/main/kotlin/org/microg/gms/phenotype/PhenotypeService.kt @@ -51,7 +51,11 @@ class PhenotypeServiceImpl : IPhenotypeService.Stub() { override fun commitToConfiguration(callbacks: IPhenotypeCallbacks, p1: String?) { Log.d(TAG, "commitToConfiguration($p1)") - callbacks.onCommitedToConfiguration(Status.SUCCESS) + if (p1.equals("CURRENT:null:com.google.android.libraries.social.peoplekit#com.google.android.apps.photos.client_id:43")) { + callbacks.onCommitedToConfiguration(Status.INTERNAL_ERROR); + } else { + callbacks.onCommitedToConfiguration(Status.SUCCESS); + } } override fun getExperimentTokens(callbacks: IPhenotypeCallbacks, p1: String?, logSourceName: String?) {