Skip to content

Commit

Permalink
Fixed a bug where 'switchDuration' would not work correctly when used…
Browse files Browse the repository at this point in the history
… in combination with 'targets'
  • Loading branch information
David Ganster committed May 9, 2018
1 parent c22e835 commit c472356
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Both versions don't require a lot of code, and the few lines you have to write a
To use `AdditiveAnimator` in your project, add the following lines to your `build.gradle`:
```
dependencies {
compile 'at.wirecube:additive_animations:1.6.1'
compile 'at.wirecube:additive_animations:1.6.2'
}
...
repositories {
Expand Down
6 changes: 3 additions & 3 deletions additive_animations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ext {
siteUrl = 'https://github.com/davidganster/android_additive_animations'
gitUrl = 'https://github.com/davidganster/android_additive_animations.git'

libraryVersion = '1.6.1'
libraryVersion = '1.6.2'

developerId = 'davidganster'
developerName = 'David Ganster'
Expand All @@ -48,8 +48,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 16
versionName "1.6.1"
versionCode 17
versionName "1.6.2"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public void run() {
}

public T switchDuration(long durationMillis) {
T child = createChildWithDelayAfterParentStart(0);
T child = thenWithDelay(0);
child.setDuration(durationMillis);
return child;
}
Expand Down Expand Up @@ -652,7 +652,7 @@ protected T createChildWithDelayAfterParentStart(long delay) {

// package-private on purpose
long getTotalDuration() {
if (getValueAnimator().getRepeatCount()== ValueAnimator.INFINITE) {
if (getValueAnimator().getRepeatCount() == ValueAnimator.INFINITE) {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
return ValueAnimator.DURATION_INFINITE;
} else {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.6.1
VERSION_CODE=16
VERSION_NAME=1.6.2
VERSION_CODE=17
GROUP=at.wirecube

POM_DESCRIPTION=Additive animations for Android, along with many convenience methods for clean animation code.
Expand Down

0 comments on commit c472356

Please sign in to comment.