ms-intune-app-sdk-android
ms-intune-app-sdk-android copied to clipboard
PopupWindow not respecting transparent background on intune only
Describe the bug:
At Slack we use the Android framework PopupWindow
for user education, and on intune builds only we see that the transparent background of our 9 patch drawables aren't respected (see image) does intune do any transformation of these classes?
To Reproduce Steps to reproduce the behavior:
- Install InTune build (From appstore is fine)
- Register with a Microsoft account
- Sign-in to an org
- Go to any channel
- Tap the Input field to bring up the toolbar
- Look at the tooltip shown for formatting
Expected behavior: The tooltip should be shown as in the regular builds, no additional background/border
Screenshots and logs:
Smartphone (please complete the following information): -Android Emulator Pixel 2 API 30
Intune SDK 7.6.0
Hi @swolfand, thanks for the report. We're tracking this internally with #12812733.
Which version of the Company Portal did you use? Can you confirm it reproduces with the latest version of the Company Portal?
Hi @swolfand, thanks for the report. We're tracking this internally with #12812733.
Which version of the Company Portal did you use? Can you confirm it reproduces with the latest version of the Company Portal?
I'm using 5.0.5333 I just reproduced it today with the latest version
Digging into this issue, I can reproduce locally in a test app without the Company Portal installed. My guess is that we are losing some default theming when the Build Plug-in rewrites PopupWindow
to MAMPopupWindow
, but I haven't root caused the issue.
@swolfand, one workaround I discovered via local testing is to explicitly set a transparent background on the PopupWindow
instance, e.g.
popWindow.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
We will continue tracking this issue and will hopefully investigate in more depth soon. However, this workaround should fix the issue for Slack in the short term.