[Android] Very minor clean-up in MainMenuActivity.java and CoreSelection.java.

This commit is contained in:
Lioncash 2013-10-08 23:11:46 -04:00
parent c7ff040bf3
commit 8fb23d0fcc
2 changed files with 3 additions and 4 deletions

View File

@ -45,8 +45,7 @@ public final class CoreSelection extends Activity implements AdapterView.OnItemC
setTitle(R.string.select_libretro_core);
// Populate the list
final String modulePath = MainMenuActivity.getInstance()
.getApplicationInfo().nativeLibraryDir;
final String modulePath = getApplicationInfo().nativeLibraryDir;
final File[] libs = new File(modulePath).listFiles();
for (final File lib : libs) {
String libName = lib.getName();

View File

@ -262,10 +262,10 @@ public final class MainMenuActivity extends PreferenceActivity {
private boolean detectDevice(boolean show_dialog) {
boolean retval = false;
final boolean mentionPlayStore = !android.os.Build.MODEL.equals("OUYA Console");
final boolean mentionPlayStore = !Build.MODEL.equals("OUYA Console");
final String message = (mentionPlayStore ? getString(R.string.detect_device_msg_general) : getString(R.string.detect_device_msg_ouya));
Log.i("Device MODEL", android.os.Build.MODEL);
Log.i("Device MODEL", Build.MODEL);
if (Build.MODEL.equals("SHIELD")) {
AlertDialog.Builder alert = new AlertDialog.Builder(this)
.setTitle(R.string.nvidia_shield_detected)