Only ask for install perm. for non-track-only apps

This commit is contained in:
Imran Remtulla
2022-11-25 19:07:05 -05:00
parent d29534ef2e
commit 42475fa42a
4 changed files with 31 additions and 19 deletions

View File

@@ -223,13 +223,17 @@ class _AppPageState extends State<AppPage> {
!appsProvider.areDownloadsRunning()
? () {
HapticFeedback.heavyImpact();
appsProvider
.downloadAndInstallLatestApps(
[app!.app.id],
context).then((res) {
if (res.isNotEmpty && mounted) {
Navigator.of(context).pop();
}
settingsProvider
.getInstallPermission()
.then((value) {
appsProvider
.downloadAndInstallLatestApps(
[app!.app.id],
context).then((res) {
if (res.isNotEmpty && mounted) {
Navigator.of(context).pop();
}
});
}).catchError((e) {
showError(e, context);
});