OSDN Git Service

Switch to explicitly managed cursors for weather query.
authorDaniel Sandler <dsandler@android.com>
Tue, 27 Apr 2010 13:17:40 +0000 (09:17 -0400)
committerDaniel Sandler <dsandler@android.com>
Tue, 27 Apr 2010 13:17:40 +0000 (09:17 -0400)
commit5d1b236620eec1456ca1e9a30085ce2ae27e984d
tree4c5e02b2b796f28c0e0e0325ecac3bd02a83bc1d
parent62635537e5df11628606b12bcabdc7f12814b869
Switch to explicitly managed cursors for weather query.

Previously, DeskClock used Activity.managedQuery, which
didn't exactly leak cursors, but it allowed them to
accumulate as long as the DeskClock Activity was running.
When used overnight as a bedside clock, the Activity can run
for a very long time without being paused.

Bug: 2627720
Change-Id: If4d53d3d6cba9dd96b41a3e25f4c8fad75339c42
src/com/android/deskclock/DeskClock.java