Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Remove unnecessary explicit indexing of entries in a List w…
…ithin AboutFragment.java

Indexes are handled internally within a List object.
  • Loading branch information
lioncash committed Aug 12, 2013
1 parent 057551a commit 68e1240
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -37,10 +37,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
mMainList = (ListView) rootView.findViewById(R.id.gamelist);

List<GameListItem> Input = new ArrayList<GameListItem>();
int a = 0;
Input.add(new GameListItem(m_activity, "Build Revision", NativeLibrary.GetVersionString(), "", true));
Input.add(new GameListItem(m_activity, "Supports OpenGL ES 3", PrefsFragment.SupportsGLES3() ? "Yes" : "No", "", true));

Input.add(a++, new GameListItem(m_activity, "Build Revision", NativeLibrary.GetVersionString(), "", true));
Input.add(a++, new GameListItem(m_activity, "Supports OpenGL ES 3", PrefsFragment.SupportsGLES3() ? "Yes" : "No", "", true));
adapter = new FolderBrowserAdapter(m_activity, R.layout.folderbrowser, Input);
mMainList.setAdapter(adapter);

Expand Down

0 comments on commit 68e1240

Please sign in to comment.