commit | 49b11f97360fea3bb37fc5cc3703587deaf32f00 | [log] [tgz] |
---|---|---|
author | Patrick Scott <phanna@android.com> | Mon Dec 14 09:32:13 2009 -0500 |
committer | Patrick Scott <phanna@android.com> | Mon Dec 14 09:34:29 2009 -0500 |
tree | 6095e2a340e00dcc36e2756ea99ed3f797bfa289 | |
parent | 531ffb589684e215a683a8ef16fc118b6904053a [diff] |
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