diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-04 12:38:19 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-04 12:38:19 +0530 |
| commit | a9550c3a5088b8e25257480fb86ff5c9a2fed6d7 (patch) | |
| tree | b6e8d248a25f1ea74ca8428bdf9eb146397775de /lib/components | |
| parent | 173cb600667e730c337a436c9407d5b268491e9c (diff) | |
| download | daft-launcher-a9550c3a5088b8e25257480fb86ff5c9a2fed6d7.tar.gz daft-launcher-a9550c3a5088b8e25257480fb86ff5c9a2fed6d7.zip | |
Fixes uninstall action
Diffstat (limited to 'lib/components')
| -rw-r--r-- | lib/components/AppContextMenu.dart | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/components/AppContextMenu.dart b/lib/components/AppContextMenu.dart index 4dcc93a..ae42bd4 100644 --- a/lib/components/AppContextMenu.dart +++ b/lib/components/AppContextMenu.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:device_apps/device_apps.dart'; import 'package:android_intent/android_intent.dart'; +import 'package:android_intent/flag.dart'; import 'package:shared_preferences/shared_preferences.dart'; import '../data/favorites.dart'; @@ -57,9 +58,8 @@ class AppContextMenu extends StatelessWidget { ).launch(); }), Option(child: Text('Uninstall'), onTap: () async { - // FIXME: Doesn't work await AndroidIntent( - action: 'action_delete', + action: 'android.intent.action.DELETE', data: 'package:${app.packageName}', ).launch(); }), |
