From ea671d639c543da5109d8f07372ab2edcd5c0364 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 28 Aug 2013 18:22:57 -0400 Subject: [PATCH] [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. --- .../dolphinemu/dolphinemu/gamelist/GameListFragment.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListFragment.java index 9c254f7b9d..a8b3362dfa 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListFragment.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListFragment.java @@ -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()); } };