mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Bug 965822 - Add null check to HomeListView.setOnItemClickListener. r=lucasr
This commit is contained in:
parent
bee238cdf8
commit
c638018665
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user