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

[gdx-backend-android] Implementation of quick settings and app drawer zoom callback missing #7055

Open
1 of 6 tasks
patzly opened this issue Dec 30, 2022 · 0 comments · May be fixed by #7206
Open
1 of 6 tasks

[gdx-backend-android] Implementation of quick settings and app drawer zoom callback missing #7055

patzly opened this issue Dec 30, 2022 · 0 comments · May be fixed by #7206

Comments

@patzly
Copy link

patzly commented Dec 30, 2022

Issue details

Hi! In Android 11 a new system zoom animation was added for static and live wallpapers, so when the user pulls down the quick settings panel or swipe up to the launcher's app drawer, the wallpaper will be zoomed in/out.

For live wallpapers there is a callback for this, very similar to the onOffsetsChanged() callback in AndroidLiveWallpaperService.java, but in libGDX the implementation of the callback is currently missing.

To implement the zoom callback,

  • the overridden method from Android's WallpaperService would have to be implemented into the AndroidWallpaperEngine in AndroidLiveWallpaperService.java
  • an new method notifyZoomChanged() would have to be implemented into the AndroidWallpaperEngine to call the new method zoomChange(float) of the interface AndroidWallpaperListener.java

I would like to implement the wallpaper zoom animation into my 3D Van Gogh live wallpaper Lamartine :)
I tried to extend AndroidLiveWallpaperService but because the global variables of AndroidLiveWallpaper are protected, a custom implementation of the zoom callback is impossible. Thank you and a Happy New Year!

Version of libGDX

1.11.0

Please select the affected platforms

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • macOS
patzly added a commit to patzly/libgdx that referenced this issue Aug 12, 2023
Added launcher zoom callback for live wallpapers introduced in API 30, closes libgdx#7055
@patzly patzly linked a pull request Aug 12, 2023 that will close this issue
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 a pull request may close this issue.

1 participant