From 3778bfe1b5d7f0684c6c5555b353e90061218623 Mon Sep 17 00:00:00 2001 From: Ushie Date: Tue, 18 Oct 2022 16:16:04 +0300 Subject: [PATCH] feat(installer): remove restriction of Share APK, closes #410 (#412) Share APK has a requirement of needing to install the patched app before sharing, this PR removes that as I see no reason for this restriction --- lib/ui/views/installer/installer_viewmodel.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 17d1fb86..ae9fdc4d 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -219,9 +219,7 @@ class InstallerViewModel extends BaseViewModel { void shareResult() { try { - if (isInstalled) { - _patcherAPI.sharePatchedFile(_app.name, _app.version); - } + _patcherAPI.sharePatchedFile(_app.name, _app.version); } on Exception catch (e, s) { Sentry.captureException(e, stackTrace: s); }