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

Timob 10207: Kitchensink: ImageViews - Animation gets paused after 4-5 frames and resume occurs leaving 1 frame in between #2697

Merged
merged 4 commits into from Aug 10, 2012

Conversation

pingwang2011
Copy link
Contributor

@@ -540,6 +541,11 @@ public void run()
Log.d(TAG, "set image: " + b.index, Log.DEBUG_MODE);
setImage(b.bitmap);
fireChange(b.index);

if (isWakingFromPause) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would name this to something less confusing like 'waitExtraFrameOnResume', and also leave a comment on what you are doing here.

@ayeung
Copy link
Contributor

ayeung commented Aug 10, 2012

It looks like we get the wrong duration value when you do the following:

  1. Pause animation
  2. Increase duration
  3. Resume animation

We probably need to store the duration in a variable so we don't use the most update-to-date one in the proxy if the user did not stop/start the animation again. You may also want to add this behavior in the docs (it says you need to do this in KS but not the docs)

@ayeung
Copy link
Contributor

ayeung commented Aug 10, 2012

Code reviewed and functionally tested. Request Accepted

ayeung pushed a commit that referenced this pull request Aug 10, 2012
Timob 10207: Kitchensink: ImageViews - Animation gets paused after 4-5 frames and resume occurs leaving 1 frame in between
@ayeung ayeung merged commit 0b95600 into tidev:master Aug 10, 2012
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 this pull request may close these issues.

None yet

2 participants