Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Simplify the onItemClick listener for the GameListAdapter i…
…n 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.
  • Loading branch information
lioncash committed Aug 28, 2013
1 parent d484056 commit ea671d6
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -123,11 +123,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
{
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());
}
};

Expand Down

0 comments on commit ea671d6

Please sign in to comment.