[Android] Indicate whether or not the device supports NEON within the About fragment.

This commit is contained in:
Lioncash 2013-11-15 16:48:36 -05:00
parent d3731d0827
commit 4bb22aa0ab
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@
<!-- About Fragment --> <!-- About Fragment -->
<string name="build_revision">ビルドのバージョン</string> <string name="build_revision">ビルドのバージョン</string>
<string name="supports_gles3">サポートのOpenGL ES 3</string> <string name="supports_gles3">サポートのOpenGL ES 3</string>
<string name="supports_neon">サポートのNEON</string>
<!-- Folder Browser --> <!-- Folder Browser -->
<string name="current_dir">現在のディレクトリ: %1$s</string> <string name="current_dir">現在のディレクトリ: %1$s</string>

View File

@ -11,6 +11,7 @@
<!-- About Fragment --> <!-- About Fragment -->
<string name="build_revision">Build Revision</string> <string name="build_revision">Build Revision</string>
<string name="supports_gles3">Supports OpenGL ES 3</string> <string name="supports_gles3">Supports OpenGL ES 3</string>
<string name="supports_neon">Supports NEON</string>
<!-- Folder Browser --> <!-- Folder Browser -->
<string name="current_dir">Current Dir: %1$s</string> <string name="current_dir">Current Dir: %1$s</string>

View File

@ -35,12 +35,13 @@ public final class AboutFragment extends ListFragment
View rootView = inflater.inflate(R.layout.gamelist_listview, container, false); View rootView = inflater.inflate(R.layout.gamelist_listview, container, false);
ListView mMainList = (ListView) rootView.findViewById(R.id.gamelist); ListView mMainList = (ListView) rootView.findViewById(R.id.gamelist);
String yes = getString(R.string.yes); final String yes = getString(R.string.yes);
String no = getString(R.string.no); final String no = getString(R.string.no);
List<AboutFragmentItem> Input = new ArrayList<AboutFragmentItem>(); List<AboutFragmentItem> Input = new ArrayList<AboutFragmentItem>();
Input.add(new AboutFragmentItem(getString(R.string.build_revision), NativeLibrary.GetVersionString())); Input.add(new AboutFragmentItem(getString(R.string.build_revision), NativeLibrary.GetVersionString()));
Input.add(new AboutFragmentItem(getString(R.string.supports_gles3), VideoSettingsFragment.SupportsGLES3() ? yes : no)); Input.add(new AboutFragmentItem(getString(R.string.supports_gles3), VideoSettingsFragment.SupportsGLES3() ? yes : no));
Input.add(new AboutFragmentItem(getString(R.string.supports_neon), NativeLibrary.SupportsNEON() ? yes : no));
AboutFragmentAdapter adapter = new AboutFragmentAdapter(m_activity, R.layout.about_layout, Input); AboutFragmentAdapter adapter = new AboutFragmentAdapter(m_activity, R.layout.about_layout, Input);
mMainList.setAdapter(adapter); mMainList.setAdapter(adapter);