-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add callback to check what part of home screen is occluded #36
Comments
Hello, Peter! At the moment the SDK does not offer this feature. Thank you for creating the issue and detailed explanations! |
Thank you very much, Christian 😀 Feel free to contact me if you and your team need any more details about the issue. |
Hello, Peter! Just wanted to give you a status. Thank you! |
Any update from MSFT on this @CristianVerdes? |
Hi wylew, Thank you for the kind reminder and sorry for the late reply. There are many parts involved and we are still working to get the best solution possible. Thank you, |
Any traction on this with MSFT @CristianVerdes ? |
Well this died on the vine... |
Hey wylew, Thanks for reaching out! Sadly, priorities shifted for us, and we couldn't handle this work. If anything changes, I will let you know in this thread. Thank you, |
Hi there, I hope this is the right place to ask a compatibility question about home screen apps. I'm one of the developers of the home screen app Niagara Launcher, and lately, we're trying to optimize our UX for foldable devices, including the Surface Duo.
The Problem
I noticed that when the Duo is unfolded, the home screen is displayed on both displays. If you launch an app, it occupies one of the two screens by default. Now half of our home screen is occluded by that app. I tried to find a callback method that notifies us about what part of the app is currently visible/occluded to the user but unfortunately to no avail. Microsoft Launcher, on the other hand, rearranges its layout after launching an app. I wish there was a public method for third-party launchers to check what parts of the home screen are visible to the user and what parts are occluded by other apps.
What callbacks I tried but did not fire on when the home screen is partially occluded:
ScreenInfoListener.onScreenInfoChanged(...)
(from com.microsoft.device.dualscreen:screenmanager-windowmanager:1.0.0-beta4)windowInfoRepository.windowLayoutInfo
(from androidx.window:window:1.0.0-beta02)OnApplyWindowInsetsListener.onApplyWindowInsets(...)
(from the Android framework)Illustrations
Niagara Launcher on both screens
Half of Niagara's home screen is occluded when an app is launched
Microsoft Launcher can readjust its layout (e.g. the dock at the bottom) when an app is launched
Additional details
I tested this on the Surface Duo Emulator (SurfaceDuoEmulator_2021.816.1_windows).
The text was updated successfully, but these errors were encountered: