[Android] Remove unnecessary explicit indexing of entries in a List within AboutFragment.java

Indexes are handled internally within a List object.
This commit is contained in:
Lioncash 2013-08-12 15:16:15 -04:00
parent 057551ada7
commit 68e12407a5
1 changed files with 2 additions and 3 deletions

View File

@ -37,10 +37,9 @@ public class AboutFragment extends Fragment {
mMainList = (ListView) rootView.findViewById(R.id.gamelist); mMainList = (ListView) rootView.findViewById(R.id.gamelist);
List<GameListItem> Input = new ArrayList<GameListItem>(); 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); adapter = new FolderBrowserAdapter(m_activity, R.layout.folderbrowser, Input);
mMainList.setAdapter(adapter); mMainList.setAdapter(adapter);