Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
109d679
commit fb82420
Showing
71 changed files
with
2,989 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/src/main/java/org/thoughtcrime/securesms/animation/AnimationRepeatListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.thoughtcrime.securesms.animation; | ||
|
||
import android.animation.Animator; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.core.util.Consumer; | ||
|
||
public final class AnimationRepeatListener implements Animator.AnimatorListener { | ||
|
||
private final Consumer<Animator> animationConsumer; | ||
|
||
public AnimationRepeatListener(@NonNull Consumer<Animator> animationConsumer) { | ||
this.animationConsumer = animationConsumer; | ||
} | ||
|
||
@Override | ||
public final void onAnimationStart(Animator animation) { | ||
} | ||
|
||
@Override | ||
public final void onAnimationEnd(Animator animation) { | ||
} | ||
|
||
@Override | ||
public final void onAnimationCancel(Animator animation) { | ||
} | ||
|
||
@Override | ||
public final void onAnimationRepeat(Animator animation) { | ||
this.animationConsumer.accept(animation); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.