[Android] Simplify the onItemClick listener for the GameListAdapter in GameListFragment. There is no need to evaluate whether or not an item is a folder, since folders cannot be added in the first place. Probably some leftover code I forgot to remove.

This commit is contained in:
Lioncash 2013-08-28 18:22:57 -04:00
parent d4840565a9
commit ea671d639c

View File

@ -123,11 +123,8 @@ public final class GameListFragment extends Fragment
{
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
GameListItem o = mGameAdapter.getItem(position);
if (!(o.getData().equalsIgnoreCase(getString(R.string.folder))||o.getData().equalsIgnoreCase(getString(R.string.parent_directory))))
{
onFileClick(o.getPath());
}
GameListItem item = mGameAdapter.getItem(position);
onFileClick(item.getPath());
}
};