Skip to content

Commit

Permalink
Phenotype: Fixed crashing when sharing photos (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored Mar 20, 2024
1 parent 2e4d3ae commit 6f74f88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PhenotypeService : BaseService(TAG, GmsService.PHENOTYPE) {
class PhenotypeServiceImpl(val packageName: String?) : IPhenotypeService.Stub() {
override fun register(callbacks: IPhenotypeCallbacks, packageName: String?, version: Int, p3: Array<out String>?, p4: ByteArray?) {
Log.d(TAG, "register($packageName, $version, $p3, $p4)")
callbacks.onRegistered(Status.SUCCESS)
callbacks.onRegistered(if (version != 0) Status.SUCCESS else Status.CANCELED)
}

override fun weakRegister(callbacks: IPhenotypeCallbacks, packageName: String?, version: Int, p3: Array<out String>?, p4: IntArray?, p5: ByteArray?) {
Expand Down

0 comments on commit 6f74f88

Please sign in to comment.