Archfx/duo-de

Phone Mode floating windows option not respected (Duo2)

Closed this issue · 9 comments

Acknowledgements

  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • This is not a feature request.
  • This issue is not a duplicate of an existing issue.
  • The issue is solely related to this GSI.
  • This issue occurs with the latest available build.
  • I am not running a custom vendor on my device.
  • This issue is not kernel related.
  • This issue is not related to Magisk/KernelSU/APatch.

Info

  • Device: Surface Duo 2
  • GSI version: v2024.10.05
  • Vendor version:

Expected Behavior

When in Phone mode (Tent, Ramp, and Brochure Postures) if the option is disabled, apps should open fullscreen.

Current Behavior

Currently, Tablet mode options control both posture types (Phone and Tablet), and Phone mode toggle doesn't seem to affect how the apps are opened.

Possible Solution

No response

Steps to Reproduce

  1. Enable Tablet mode Floating Windows
  2. Disable Phone mode Floating Windows
  3. Fold phone to phone mode
  4. Open an app
  5. App appears as a floating window in phone mode and tablet regardless of set option.
  6. Disable Tablet mode Floating Windows
  7. Enable Phone mode floating windows
  8. Open an app
  9. App opens full screen, irrespective of phone mode option.

Logs

No response

Additional context

No response

Please try resetting the Trebuchet storage and cache and let me know. It looks like previous user cookies override the updated one.

Seems to not change much. Still only working with the tablet mode toggle.

Seriously, I used a variable to check whether the device is in tablet mode or phone mode, looks like for duo2 it does not work. Let me get that variable in another way.

Please check with the updated release and let me know.

@Archfx Seems like the release does not have an img file to flash

Sorry, there was an issue with the compile process.

May I know your smallest width size in the phone mode? Go to Developer options and search for smallest width when you are in phone mode.

600dp, I did modify it to try fit more objects.

600dp, I did modify it to try fit more objects.

600 is the threshold that I have used to determine the tablet mode and the phone mode, you can use 599 or lower value, and it should solve this issue.

That did it, it works fine now!