DroidWorksStudio / mLauncher

Minimal Launcher app for Android. Customized olauncher as I just started learning kotlin .
GNU General Public License v3.0
217 stars 22 forks source link

[Enhancement] Add work profile on/off button #488

Closed i-penr closed 2 months ago

i-penr commented 2 months ago

Checklist

Feature description

Like some launchers do, a button to pause and unpause work apps would be nice to have, in my opinion.

Additional information

No response

Terms and Conditions

Gitbot-Actions commented 2 months ago

👋 Thanks for reporting!

We will get back to you soon about this issue.

HeCodes2Much commented 2 months ago

So you want a toggle to hide work apps?

i-penr commented 2 months ago

Not exactly. It is an android feature that makes the work apps not only hidden, but also unable to send notifications and run in the background.

HeCodes2Much commented 2 months ago

Ok that I'll have to look into as I'm not 100 percent sure of how I could do that. Hiding the apps I know how to do but everything else I'm not too sure but I'll try my best.

Also thanks for the coffee.

HeCodes2Much commented 2 months ago

Is there not already a way to toggle this in the notification center if the work profile is already enabled?

i-penr commented 2 months ago

I have seen it on other people's phones, but not on mine. In the default launcher there is a disable work apps button, and the problem is that, as far as I have discovered, it is the only toggle available in my phone.

HeCodes2Much commented 2 months ago

To pause your work profile from Quick Settings:

Swipe down from the top of any screen and locate the work tile (briefcase icon). You may need to swipe down again to see all your quick settings. If you don't see the work tile, you can add it if your device supports it by tapping the edit icon at the bottom of the panel.

Tap the work tile. When the tile is dimmed, your work profile is paused. When the tile is illuminated, your work profile is running.

i-penr commented 2 months ago

I already checked that. It is not on my phone. I dug a little deeper and I found out it is a common MIUI bug, so that's that.

HeCodes2Much commented 2 months ago

I'll take a look at doing a toggle but I'm not too sure about it.

i-penr commented 2 months ago

I thought it was a more widespread problem, but if it really is only an obscure MIUI bug that makes the toggle disappear, I get it if its not worth the effort to implement one inside the launcher. Thanks anyways for looking into it!