Skip to content

Commit 18ef2e3

Browse files
committed
bug fix for the animation
1 parent 6ca09d3 commit 18ef2e3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.idea/caches/build_file_checksums.ser

0 Bytes
Binary file not shown.

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spin/src/main/java/com/marksalpeter/spin/SpinView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void init(AttributeSet attrs, int defStyle) {
121121
mAnimationHandler.post(new Runnable() {
122122
@Override public void run() {
123123
// stop the animation
124-
if (ViewCompat.isAttachedToWindow(SpinView.this)) {
124+
if (!ViewCompat.isAttachedToWindow(SpinView.this)) {
125125
try {
126126
mAnimationHandlerThread.quit();
127127
} catch (Exception e) {

0 commit comments

Comments
 (0)