rizwan3d / adw-launcher-android

Automatically exported from code.google.com/p/adw-launcher-android
1 stars 0 forks source link

Live wallpaper not receiving correct onOffsetsChanged() events on first and last homescreen #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a live wallpaper app.
2. Log the values passed to the WallpaperService.Engine.onOffsetsChanged() 
function by ADW.Launcher.

What is the expected output? What do you see instead?
 - Expected xOffset to reach 0.0 when moving to the first (left-most) homescreen.
 - Expected xOffset to reach 1.0 when moving to the last (right-most) homescreen.
 - Instead, xOffset doesn't quite reach 0.0 or 1.0, especially if moving quickly to the first/last homescreen.
 - Also, sometimes when adding homescreens, the xOffsetStep is not updated straight away.

What version of the product are you using? On what phone? What Android version?
AWD.Launcher 1.1.4 on Nexus One, using CyanogenMod 6.0.0 final (2.2).

Please provide any additional information below.
http://developer.android.com/reference/android/service/wallpaper/WallpaperServic
e.Engine.html#onOffsetsChanged(float,%20float,%20float,%20float,%20int,%20int)

Original issue reported on code.google.com by michael....@gmail.com on 8 Sep 2010 at 12:19

GoogleCodeExporter commented 9 years ago
Hi, as i haven't ever played with lwp code it's hard for me to handle/debig it.
I think the problem happens cause of the "bounce" animation when scrolling 
desktops... but i'd need some help to track it down.

Original comment by ander...@gmail.com on 18 Oct 2010 at 7:01

GoogleCodeExporter commented 9 years ago
Adding to this issue, when pressing the home button to return to main 
homescreen, onOffsetsChanged is not updated frequently enough to notify Live 
Wallpaper of correct screen switch.

Example taken from testing data on LogCat:

xOffset: 0.8020833
xOffset: 0.1625

This was run with 4 screens, starting on the far most right screen, and 
pressing the home button to return to the far most left screen. When swiping to 
the far most right screen, it settled on an xOffset of 0.9951389. When pressing 
the home button to get to the far most left screen, it never got close enough 
to 0.0 to indicate to the Live Wallpaper that that screen has been centered.

Tested on Droid 1 (sholes) Cyanogen Mod 7.0.2, ADW built in.

Original comment by shpen72...@gmail.com on 28 Jul 2011 at 8:11