Skip to content

Commit

Permalink
Fixed the problem of crashing when sharing photos through links in [p…
Browse files Browse the repository at this point in the history
…hotos album]
  • Loading branch information
DaVinci9196 authored and ale5000-git committed Feb 25, 2024
1 parent 214a54e commit 652dbcf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ class PhenotypeServiceImpl(val packageName: String?) : IPhenotypeService.Stub()

override fun commitToConfiguration(callbacks: IPhenotypeCallbacks, snapshotToken: String?) {
Log.d(TAG, "commitToConfiguration($snapshotToken)")
callbacks.onCommitedToConfiguration(Status.SUCCESS)
if (snapshotToken.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, packageName: String?, logSourceName: String?) {
Expand Down

0 comments on commit 652dbcf

Please sign in to comment.