Skip to content

Commit 1a1571c

Browse files
committed
ListenIfAdapter: fix for method getCount()
1 parent 4349b19 commit 1a1571c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/net/christianbeier/droidvnc_ng/ListenIfAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
174174

175175
@Override
176176
public NetworkInterfaceData getItem(int position) {
177-
if (0 <= position && position <= this.getCount()) {
177+
if (0 <= position && position < this.getCount()) {
178178
return this.data.get(position);
179179
}
180180
return null;

0 commit comments

Comments
 (0)