Typing animations from android.

This commit is contained in:
John Preston
2016-12-01 22:20:33 +03:00
parent 2b3631f3ae
commit 8958ae0377
125 changed files with 1031 additions and 669 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ void SingleTimer::setTimeoutHandler(base::lambda<void()> &&handler) {
}
void SingleTimer::adjust() {
uint64 n = getms(true);
auto n = getms(true);
if (isActive()) {
if (n >= _finishing) {
start(0);
@@ -58,7 +58,7 @@ void SingleTimer::onTimeout() {
}
void SingleTimer::start(int msec) {
_finishing = getms(true) + (msec < 0 ? 0 : uint64(msec));
_finishing = getms(true) + (msec < 0 ? 0 : msec);
if (!_inited && App::app()) {
connect(App::app(), SIGNAL(adjustSingleTimers()), this, SLOT(adjust()));
_inited = true;