MCPcopy Create free account
hub / github.com/GcsSloop/AndroidNote / handleMessage

Method handleMessage

CustomView/Advance/Code/CheckView.java:71–96  ·  view source on GitHub ↗
(Message msg)

Source from the content-addressed store, hash-verified

69
70 mHandler = new Handler() {
71 @Override
72 public void handleMessage(Message msg) {
73 super.handleMessage(msg);
74 if (animCurrentPage < animMaxPage && animCurrentPage >= 0) {
75 invalidate();
76 if (animState == ANIM_NULL)
77 return;
78 if (animState == ANIM_CHECK) {
79
80 animCurrentPage++;
81 } else if (animState == ANIM_UNCHECK) {
82 animCurrentPage--;
83 }
84
85 this.sendEmptyMessageDelayed(0, animDuration / animMaxPage);
86 Log.e("AAA", "Count=" + animCurrentPage);
87 } else {
88 if (isCheck) {
89 animCurrentPage = animMaxPage - 1;
90 } else {
91 animCurrentPage = -1;
92 }
93 invalidate();
94 animState = ANIM_NULL;
95 }
96 }
97 };
98 }
99

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected