Skip to content

Commit 343dc9b

Browse files
committed
see 10/31 log
1 parent f63ca15 commit 343dc9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utilcode/src/main/java/com/blankj/utilcode/utils/AppUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public static boolean uninstallAppSilent(Context context, String packageName, bo
141141
return commandResult.successMsg != null && commandResult.successMsg.toLowerCase().contains("success");
142142
}
143143

144+
144145
/**
145146
* 判断App是否有root权限
146147
*
@@ -489,7 +490,7 @@ public static boolean isAppForeground(Context context) {
489490

490491
/**
491492
* 判断App是否处于前台
492-
* <p>当不是查看当前App,且SDK >= 22时
493+
* <p>当不是查看当前App,且SDK大于21时
493494
* 需添加权限 {@code <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>}</p>
494495
*
495496
* @param context 上下文

0 commit comments

Comments
 (0)