From 23690a98df0f206328adecd895860efb57e8b267 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Mon, 29 Jul 2024 22:56:00 +0700 Subject: [PATCH] feat: Include primary architecture in external search (#2068) --- lib/ui/views/app_selector/app_selector_viewmodel.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ui/views/app_selector/app_selector_viewmodel.dart b/lib/ui/views/app_selector/app_selector_viewmodel.dart index bc8d9c28..cc231655 100644 --- a/lib/ui/views/app_selector/app_selector_viewmodel.dart +++ b/lib/ui/views/app_selector/app_selector_viewmodel.dart @@ -13,6 +13,7 @@ import 'package:revanced_manager/services/manager_api.dart'; import 'package:revanced_manager/services/patcher_api.dart'; import 'package:revanced_manager/services/toast.dart'; import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart'; +import 'package:revanced_manager/utils/about_info.dart'; import 'package:revanced_manager/utils/check_for_supported_patch.dart'; import 'package:stacked/stacked.dart'; @@ -74,11 +75,14 @@ class AppSelectorViewModel extends BaseViewModel { required String packageName, }) async { final String suggestedVersion = getSuggestedVersion(packageName); + final String architecture = await AboutInfo.getInfo().then((info) { + return info['supportedArch'][0]; + }); if (suggestedVersion.isNotEmpty) { - await openDefaultBrowser('$packageName apk version $suggestedVersion'); + await openDefaultBrowser('$packageName apk version $suggestedVersion $architecture'); } else { - await openDefaultBrowser('$packageName apk'); + await openDefaultBrowser('$packageName apk $architecture'); } } @@ -178,7 +182,6 @@ class AppSelectorViewModel extends BaseViewModel { fontSize: 16, fontWeight: FontWeight.w500, ), - ), actions: [ FilledButton(