summaryrefslogtreecommitdiff
path: root/Source/Android/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-08-28 18:22:57 -0400
committerLioncash <mathew1800@gmail.com>2013-08-28 18:23:32 -0400
commitea671d639c543da5109d8f07372ab2edcd5c0364 (patch)
tree07e686d31d3cdc3aeac5e2688d8cd011ee88c9da /Source/Android/src
parentd4840565a9981a2ebab0cf8fb97da64ffa86080c (diff)
[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.
Diffstat (limited to 'Source/Android/src')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListFragment.java7
1 files 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());
}
};