mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: fix armv7 dialog shown for x86, x86_64
This commit is contained in:
parent
3fe5882145
commit
170fc537ac
@ -86,13 +86,11 @@ class PatcherViewModel extends BaseViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> showArmv7WarningDialog(BuildContext context) async {
|
Future<void> showArmv7WarningDialog(BuildContext context) async {
|
||||||
final bool armv7 = await AboutInfo.getInfo().then(
|
final bool armv7 = await AboutInfo.getInfo().then((info) {
|
||||||
(info) =>
|
final List<String> archs = info['arch'];
|
||||||
info['arch'] != null &&
|
final supportedAbis = ['arm64-v8a', 'x86', 'x86_64'];
|
||||||
info['arch']!.contains('armeabi-v7a') &&
|
return !archs.any((arch) => supportedAbis.contains(arch));
|
||||||
!info['arch']!.contains('arm64-v8a'),
|
});
|
||||||
);
|
|
||||||
|
|
||||||
if (context.mounted && armv7) {
|
if (context.mounted && armv7) {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user