peterfajdiga / FastDraw

A simple Android launcher with categories
42 stars 6 forks source link

Can't access my work apps #8

Open gothemknight opened 11 months ago

gothemknight commented 11 months ago

As title says, none of my work apps are showing up in the app drawer. Only thing it needs is a search function. Great launcher!

peterfajdiga commented 11 months ago

Hi, thanks for the report! What does work apps mean? Do you have a separate work profile? I've never used profiles or multi-users per device, so I'm not familiar with this.

peterfajdiga commented 11 months ago

Looking at Trebuchet code, I see I can get work apps by using LauncherApps.getActivityList (passing the work profile UserHandle) instead of PackageManager.queryIntentActivities and then LauncherActivityInfo.getActivityInfo for each app.

Unfortunately this getActivityInfo method requires API level 31. There should be another way to get work apps (maybe using PackageManager), because work profile has existed since API level 21, but I haven't found it yet, and I'm honestly more tempted to just stop supporting API level under 31.

Pantyhose-X commented 6 months ago
Lg42tv commented 11 minutes ago

A workaround for now (If you're using shelter), is clicking in app on individual apps and choosing the option:

Create Unfreaze and/ or Launch Shortcut