Compile SDK 35
This commit is contained in:
@@ -30,7 +30,7 @@ class BadgeDrawable(context: Context, drawable: Drawable) : Drawable() {
|
||||
}
|
||||
val bitmap = drw.toBitmap(size, size).run {
|
||||
if(isMutable) this
|
||||
else this.copy(config, true)
|
||||
else this.copy(config ?: Bitmap.Config.ARGB_8888, true)
|
||||
}
|
||||
this.drawable = BitmapDrawable(context.resources, bitmap)
|
||||
}
|
||||
|
||||
@@ -12,13 +12,13 @@ internal fun getAppSignature(context: Context): String {
|
||||
context.packageName,
|
||||
PackageManager.GET_SIGNING_CERTIFICATES
|
||||
)
|
||||
pi.signingInfo.apkContentsSigners.firstOrNull()
|
||||
pi.signingInfo?.apkContentsSigners?.firstOrNull()
|
||||
} else {
|
||||
val pi = context.packageManager.getPackageInfo(
|
||||
context.packageName,
|
||||
PackageManager.GET_SIGNATURES
|
||||
)
|
||||
pi.signatures.firstOrNull()
|
||||
pi.signatures?.firstOrNull()
|
||||
}
|
||||
return if (signature != null) {
|
||||
val digest = MessageDigest.getInstance("SHA")
|
||||
|
||||
Reference in New Issue
Block a user