diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-01-30 16:55:55 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-01-30 17:58:49 -0800 |
commit | 260c3c77d9b340164e055f87002c64d78da6e836 (patch) | |
tree | 194e78856f8c68d027b70161337fa9fd5a842bc8 /api/11.xml | |
parent | fba54f620ff155ede6de7d73f1b6a0003839b1c4 (diff) | |
download | frameworks_base-260c3c77d9b340164e055f87002c64d78da6e836.zip frameworks_base-260c3c77d9b340164e055f87002c64d78da6e836.tar.gz frameworks_base-260c3c77d9b340164e055f87002c64d78da6e836.tar.bz2 |
Fix issue #3381489: IllegalStateException: attempt to re-open...
...an already-closed object: android.database.sqlite.SQLiteQuery
It turns out there is a state we are missing -- the loader is
still needed, but in the inactive list. In this case the loader
needs to continue holding on to its current data, and not deliver
any new data (which would result in it releasing its old data).
This introduces the new state to Loader, and uses it in
AsyncTaskLoader so all subclasses of that should get the new
correct behavior.
A further improvement would be to unregister CursorLoader's
content listener when going in to this state, but that can
wait for later.
Change-Id: I6d30173b94f8e30b5be31d018accd328cc3388ec
Diffstat (limited to 'api/11.xml')
-rw-r--r-- | api/11.xml | 46 |
1 files changed, 33 insertions, 13 deletions
@@ -43763,19 +43763,6 @@ <parameter name="data" type="D"> </parameter> </method> -<method name="onCancelled" - return="void" - abstract="false" - native="false" - synchronized="false" - static="false" - final="false" - deprecated="deprecated" - visibility="public" -> -<parameter name="data" type="D"> -</parameter> -</method> <method name="onLoadInBackground" return="D" abstract="false" @@ -55609,6 +55596,17 @@ <parameter name="context" type="android.content.Context"> </parameter> </constructor> +<method name="abandon" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> <method name="dataToString" return="java.lang.String" abstract="false" @@ -55687,6 +55685,17 @@ visibility="public" > </method> +<method name="isAbandoned" + return="boolean" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> <method name="isReset" return="boolean" abstract="false" @@ -55709,6 +55718,17 @@ visibility="public" > </method> +<method name="onAbandon" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="protected" +> +</method> <method name="onContentChanged" return="void" abstract="false" |