Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ public void handleMessage(Message msg) {
}
} else {
stopTimer();
mCircleTimerLister.onTimeEnd();
mCurrentTimeMode = MODE_MANUAL_SETUP;
}
// Invert the show time colon flag
mShowTimeColon = !mShowTimeColon;
Expand Down Expand Up @@ -278,6 +280,15 @@ public interface CircleTimerListener {
*/
void onTimerTimeValueChanged(long time);


/**
* send event when time end
*
* @param time end time
* /
void onTimerEnd();


}
// Listener interface

Expand Down Expand Up @@ -624,6 +635,7 @@ public void stopTimer() {
mStarted = false;
if (mCircleTimerListener != null) {
mCircleTimerListener.onTimerStop();
mCurrentTimeMode = MODE_MANUAL_SETUP;
}
mTimer = null;
mDefaultTimerTask = null;
Expand Down