Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work profile fix #231

Merged
merged 3 commits into from
May 16, 2024
Merged

Work profile fix #231

merged 3 commits into from
May 16, 2024

Conversation

louisg1337
Copy link
Contributor

This PR addresses this issue.

  • Adds in an additional check to see if app is installed on a work profile
  • Reverts previous temporary fix
  • Bumps version number

Testing Done
I successfully went through the permissions process for the app while installed on both a work profile and personal profile.

Comment on lines +126 to +127
public static boolean checkWorkProfile(final Context ctxt) {
DevicePolicyManager devicePolicyManager = (DevicePolicyManager) ctxt.getSystemService(ctxt.DEVICE_POLICY_SERVICE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with merging this as-is so that we don't over-engineer this, but in the future, we may want to/need to return the admin information. But it is fine for now, since it follows the format of the other checks as well.

@shankari shankari merged commit 24d9aa5 into e-mission:master May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants