Modify change isAppDebuggable function name to isDebugApp in FunctionFactory

This commit is contained in:
2023-01-29 00:23:29 +08:00
parent b7ee52c65b
commit d5f366a82d
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ fun Context.appIconOf(packageName: String = getPackageName()) = getPackageInfoCo
* @param packageName APP 包名
* @return [Boolean]
*/
fun Context.isAppDebuggable(packageName: String) =
fun Context.isDebugApp(packageName: String) =
safeOfFalse { (getPackageInfoCompat(packageName)?.applicationInfo?.flags?.and(ApplicationInfo.FLAG_DEBUGGABLE) ?: 0) != 0 }
/**

View File

@@ -119,7 +119,7 @@ object IconAdaptationTool {
* @param packageName 安装的 APP 包名
*/
fun pushNewAppSupportNotify(context: Context, packageName: String) {
if (context.isAppDebuggable(packageName)) return
if (context.isDebugApp(packageName)) return
context.getSystemService(NotificationManager::class.java)?.apply {
createNotificationChannel(
NotificationChannel(