Fix fast tapping crash again

This commit is contained in:
Boris Timofeev 2016-10-27 22:24:06 +03:00
parent 0f19c8c224
commit c1dbf5547a

View file

@ -130,7 +130,7 @@ public class FilePickerActivity extends AppCompatActivity implements FilePickerA
@Override
public void onItemClick(View view, int position) {
if (position < 0 || position > fileList.size()) // fix 'fast tapping' crash
if (position < 0 || position >= fileList.size()) // fix 'fast tapping' crash
return;
String fileName = fileList.get(position).getName();