summaryrefslogtreecommitdiff
path: root/core/java/android/os/CountDownTimer.java
Commit message (Collapse)AuthorAgeFilesLines
* Update Kotlin sample code for CountDownTimer and ParcelableJing Ji2021-04-141-3/+18
| | | | | | | | | | Also fixed a typo in the javadoc of android.os.Debug Bug: 155869891 Bug: 152033307 Bug: 177360175 Test: m -j ds-docs Change-Id: I52da37d24ab224344f931fed558df86f250bf86f
* CountDownTimer: not skip onTick()Hidenari Koshimae2016-10-251-8/+17
| | | | | | | | | | | | | | CoundDownTimer internally performs counting down with a handler and fires onTick() callback at countdown intervals. At this internal counting down, firing onTick() is skipped if the account of time until finished is less than countdown interval. Due to this skip of onTick(), user will miss last onTick() callback. This change ensures CountDownTimer to fires every onTick() callback until the time is up. Bug: 32392931 Change-Id: I951f5cd46743873d7f8c353f8cf8c700999d8ae0
* Fixed cancel() not working correctlyjl19902014-01-301-3/+12
| | | | | | | | | | | | | | The method handleMessage(Message msg) from mHandler variable was not checking if the timer was cancelled, so sendMessageDelayed(obtainMessage(MSG), delay) was keeping the timer alive. The patch simply adds a boolean and checks if the CountDownTimer was cancelled before calling sendMessageDelayed(obtainMessage(MSG), delay) bug: https://code.google.com/p/android/issues/detail?id=58668 Change-Id: Ic6bbb9d33a3616f8503db222513cc14ad2270cb8 Signed-off-by: jl1990 <jlcarrasco1990@gmail.com>
* Fix typosMichael Chan2011-10-201-1/+1
| | | | | | | Change-Id: I6406b33f52bd8fb126a9b346d1bfe30ca2c2144b http://code.google.com/p/android/issues/detail?id=14614 http://code.google.com/p/android/issues/detail?id=3563 http://code.google.com/p/android/issues/detail?id=5960
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+138
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-138/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+138