Skip to content

Commit

Permalink
修复安卓5以下设备设置闪退
Browse files Browse the repository at this point in the history
  • Loading branch information
Eanya-Tonic committed Oct 9, 2024
1 parent a4b1edd commit 0588853
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ protected void onCreate(Bundle savedInstanceState) {
}

private static boolean isCpu64Bit() {
for (String abi : Build.SUPPORTED_ABIS) {
if (abi.contains("64")) return true;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
for (String abi : Build.SUPPORTED_ABIS) {
if (abi.contains("64")) return true;
}
}
return false;
}
Expand Down

0 comments on commit 0588853

Please sign in to comment.