OSDN Git Service

Fix ANR in PhotoPage.
authorOwen Lin <owenlin@google.com>
Fri, 13 Apr 2012 04:33:29 +0000 (12:33 +0800)
committerOwen Lin <owenlin@google.com>
Fri, 13 Apr 2012 04:40:18 +0000 (12:40 +0800)
commit47795fea8bc6e4bd65af73c2cabcdae593f78952
tree759edb747450344b46e549b5fb63c5928085ac63
parentfe047898b1afd2b85ab37755cdf3f19b058abc58
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