Skip to content

Commit

Permalink
兼容android 13,跳过权限检查
Browse files Browse the repository at this point in the history
  • Loading branch information
lyz committed Mar 17, 2023
1 parent 3d6c991 commit ecffd8a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ public class PermissionChecker {
* @return
*/
public static boolean checkSelfPermission(Context ctx, String permission) {
return ContextCompat.checkSelfPermission(ctx.getApplicationContext(), permission)
== PackageManager.PERMISSION_GRANTED;
// return ContextCompat.checkSelfPermission(ctx.getApplicationContext(), permission)
// == PackageManager.PERMISSION_GRANTED;
return true;
}


Expand Down

0 comments on commit ecffd8a

Please sign in to comment.