summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramFragment.cpp
diff options
context:
space:
mode:
author Bjorn Bringert <bringert@android.com> 2009-08-26 13:18:40 +0100
committer Bjorn Bringert <bringert@android.com> 2009-08-26 13:18:40 +0100
commitba223760895e62ad2fcb85476984cb29018860c9 (patch)
tree0b5ef3252198b1557a422c648d6db340952c9c14 /libs/rs/rsProgramFragment.cpp
parentb56de7474d93e634f77be58a794fbd1b0e68f6a8 (diff)
Close suggestion cursors that arrive after adapter is closed
Before, after using the Browser, memory-hungry apps could become very sluggish. This was because the search dialog in the system process had the BrowserProvider open, which in turn had EnhancedGoogleSearch open. Since EhancedGoogleSearch runs in acore, the system would keep both the Browser process and acore to stay around forever. The cause (or at least one common cause) for this was that if the user types quickly, and clicks on a suggestion before the displayed suggestions have caught up, some suggestion cursors are not be closed. This change solves this problem by adding a close() method to SuggestionsAdapter. SuggestionsAdapter now closes any cursors that are passed to it after close() is called. Fixes http://b/issue?id=2078226 "global search holding reference to browser: system -> browser -> acore = :("
Diffstat (limited to 'libs/rs/rsProgramFragment.cpp')
0 files changed, 0 insertions, 0 deletions