OSDN Git Service

Fix a monkey crash by pretending to be a real adapter.
authorPatrick Scott <phanna@android.com>
Mon, 14 Dec 2009 14:32:13 +0000 (09:32 -0500)
committerPatrick Scott <phanna@android.com>
Mon, 14 Dec 2009 14:34:29 +0000 (09:34 -0500)
commit49b11f97360fea3bb37fc5cc3703587deaf32f00
tree6095e2a340e00dcc36e2756ea99ed3f797bfa289
parent531ffb589684e215a683a8ef16fc118b6904053a
Fix a monkey crash by pretending to be a real adapter.

The monkey could generate this crash by sending a touch event to the view after
a tab was removed from TabControl (somehow). Use notifyDataSetChanged() to be a
better adapter. If we did not call notifyDataSetChanged and getCount() will
return something different, return the old count and post a message to update
the adapter.

Bug: 2307928
src/com/android/browser/ActiveTabsPage.java