OSDN Git Service

Fixup handling destroy
authorJohn Reck <jreck@google.com>
Thu, 21 Jul 2011 16:46:17 +0000 (09:46 -0700)
committerJohn Reck <jreck@google.com>
Thu, 21 Jul 2011 19:42:40 +0000 (12:42 -0700)
commit00d5bf7e44d44510d0828c473619c95a9ea783e3
tree5969740bace560b6b5d4087faa3ae3c389d1fb7f
parentcaed51bcc23303182ffffb8b2db04647845bc1f5
Fixup handling destroy

 Bug: 5002925
 White list certain messages that can be handled after WebViewCore
 was destroyed (specificially pause/resumeTimers, which are per process)
 and reject all other messages. This avoids using the undocumented
 removeCallbacksAndMessages(null) trick, as well as makes sure PAUSE_TIMERS
 and RESUME_TIMERS are processed in the correct order the correct number
 of times.

Change-Id: I8c51172e015f923ffeb0816a8ee2ab63219d0f96
core/java/android/webkit/WebViewCore.java