Bug 965822 - Add null check to HomeListView.setOnItemClickListener. r=lucasr

This commit is contained in:
Margaret Leibovic 2014-03-06 09:25:02 -08:00
parent bee238cdf8
commit c638018665

View File

@ -104,6 +104,11 @@ public class HomeListView extends ListView
@Override
public void setOnItemClickListener(final AdapterView.OnItemClickListener listener) {
if (listener == null) {
super.setOnItemClickListener(null);
return;
}
super.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {