[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:
parent
057551ada7
commit
68e12407a5
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue