OSDN Git Service

Fix ANR in PhotoPage.
authorOwen Lin <owenlin@google.com>
Fri, 13 Apr 2012 04:33:29 +0000 (12:33 +0800)
committerThe Android Automerger <android-build@android.com>
Fri, 13 Apr 2012 23:31:52 +0000 (16:31 -0700)
commita9f3be9c7e80e26c0c09ca45d829269c49d8835d
tree4a4993d63ba8bf1548acd403e1c49f6124998dde
parent88d715de7a950616371b771dbb6a124b1718914b
Fix ANR in PhotoPage.

This bugs happens because we open too many PhotoPage(s) (and onSingleTapUp is a delayed event).
However, each of the PhotoPage need a Thread to run tile decoder. When we close one of the
PhotoPage, it will wait the tile decoder to get finished first. However, the title decoder may
still waiting in the queue and never got a chance to run.

Change-Id: I113d1150729892edb4fe36bc5a1dc131db300476
fix: 6319833
src/com/android/gallery3d/app/AlbumPage.java
src/com/android/gallery3d/app/AlbumSetPage.java