OSDN Git Service

AdapterView does not check for null adapter when initializing accessibility event.
authorSvetoslav Ganov <svetoslavganov@google.com>
Wed, 19 Oct 2011 19:38:04 +0000 (12:38 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Wed, 19 Oct 2011 19:38:08 +0000 (12:38 -0700)
commit0e6fa8b60d113883c92dd754f5e3f8bb8b17e073
tree2f610bdf99f8a3d3d242f56b77804790f7be8410
parent47f8367ab79247501d5d204632a7797fa8a888e5
AdapterView does not check for null adapter when initializing accessibility event.

The code that initializes accessibility events was assuming the AdapterView
always has an adapter and this caused NPE. Now the right method of the view
is called to get the item count.

bug:5474162

Change-Id: I6c330dc2894477df9447a4ecfddc7bd62c575d59
core/java/android/widget/AdapterView.java