mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: fix armv7 dialog shown for x86, x86_64
This commit is contained in:
parent
3fe5882145
commit
170fc537ac
1 changed files with 5 additions and 7 deletions
|
@ -86,13 +86,11 @@ class PatcherViewModel extends BaseViewModel {
|
|||
}
|
||||
|
||||
Future<void> showArmv7WarningDialog(BuildContext context) async {
|
||||
final bool armv7 = await AboutInfo.getInfo().then(
|
||||
(info) =>
|
||||
info['arch'] != null &&
|
||||
info['arch']!.contains('armeabi-v7a') &&
|
||||
!info['arch']!.contains('arm64-v8a'),
|
||||
);
|
||||
|
||||
final bool armv7 = await AboutInfo.getInfo().then((info) {
|
||||
final List<String> archs = info['arch'];
|
||||
final supportedAbis = ['arm64-v8a', 'x86', 'x86_64'];
|
||||
return !archs.any((arch) => supportedAbis.contains(arch));
|
||||
});
|
||||
if (context.mounted && armv7) {
|
||||
return showDialog(
|
||||
context: context,
|
||||
|
|
Loading…
Reference in a new issue