history: start/stop time update poller when needed.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 6 Aug 2012 16:45:51 +0000 (13:45 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 6 Aug 2012 16:48:32 +0000 (13:48 -0300)
commit3d1544046366d1048a204946d0db952438859c4b
tree3b197cdcaabee2644aa3e0e27352a0294a38c7fb
parentd9377cbdefb3cf16a32b7f6f7bd0e55b1f65fbc4
history: start/stop time update poller when needed.

If the window is unfocused or the history list is hidden, do not keep
the poller running and draining battery.

If window is focused and object is visible, then start the poller and
update the list immediately. (avoid updating too often, 1.0s is the
current threshold).
dialer/history.c