OSDN Git Service

Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
authorDianne Hackborn <hackbod@google.com>
Mon, 24 Jan 2011 21:15:09 +0000 (13:15 -0800)
committerDianne Hackborn <hackbod@google.com>
Tue, 25 Jan 2011 05:23:03 +0000 (21:23 -0800)
commit5d9d03a0234faa3cffd11502f973057045cafe82
tree7dbde1fb5e09b2d77ac5249f14591e8f958f046a
parent169fafe6797dc4c7ae17eba29b72034be6c9c8ec
Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...

...Invalid index 0, size is 0 at
android.app.ActivityThread.performPauseActivity(ActivityThread.java:2326)

It looks like if an arrow key is dispatched between the time the
list view is told its data set has changed and it does the resulting
layout pass, we could try to move the position to a now invalid
index.  This may prevent that from happening.

Also put in a better error message if saving state of a fragment
whose target is no longer in the fragment manager.

And fix a bug in PackageManager where we could return a null from
queryIntentActivities().

And add a new API to find out whether a fragment is being removed,
to help fix issue #3306021: NPE at
android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

Next, for new HC apps we can delay committing data to
storage until the activity is stopped.

Finally, use the new multi-threaded AyncTask executor in a few
places, so we don't have worked blocked by long-running tasks from
the application.

Change-Id: I27b2aafedf2e1bf3a2316309889613fa539760f3
api/current.xml
core/java/android/app/ActivityThread.java
core/java/android/app/Fragment.java
core/java/android/app/FragmentManager.java
core/java/android/content/AsyncTaskLoader.java
core/java/android/content/ContentProvider.java
core/java/android/util/LogWriter.java [new file with mode: 0644]
core/java/android/widget/ListView.java
services/java/com/android/server/PackageManagerService.java