Closed Stavrenas closed 2 weeks ago
I'm afraid that I can't reproduce this at all. If you can provide a sample which reproduces on an emulator then I can take a look.
@chrisbanes sure, can you try this repo? https://github.com/Stavrenas/haze-offset
Edit: Make sure to launch the previews on a real device. Haven't tried on an emulator
I still can't recreate this an emulator or Pixel 8.
I'm afraid that if this isn't reproducible on an emulator then it's almost certain to be a OEM/device specific issue, and there's not much I can do to help here really. What device and Android version are you using?
FYI, the integration here is extremely simple: it's just a call to View.getLocationOnScreen
.
I'm on a Pixel 6 on an Ubuntu dev environment, however this happens also on a Windows machine with a Poco X4 GT device.
I tried the same thing on the emulator, Pixel 8 (default settings) and the result is the same.
I'm starting to think, maybe it's jdk related? I'm on version 17, I'll try a newer one and update you
So just to confirm, this only happens when deploying previews?
Information
Expected Behavior
Dialog is uniformly blurred
This screenshot was generated by enabling the fullscreen mode (activity.window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_FULLSCREEN)
Actual Behavior
Dialog's blur is offset by the top (or bottom) bar when not in fullscreen
Steps to Reproduce the Problem
Unfortunately, I can't compile the source code to do any debugging (yet).