From 467f351f79a3d95757f88aa65a1c05fe00479f14 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 13 Jun 2015 08:18:42 -0500 Subject: [PATCH] [Android] Remove dialog telling individuals that their drivers are terrible. There aren't any AArch64 devices with v14 Qualcomm drivers. So it is dead code. --- .../fragments/SettingsFragment.java | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/SettingsFragment.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/SettingsFragment.java index 8f77e4a72d..0f549d470d 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/SettingsFragment.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/fragments/SettingsFragment.java @@ -149,49 +149,7 @@ public final class SettingsFragment extends PreferenceFragment implements Shared findPreference("enhancements").setEnabled(true); findPreference("hacks").setEnabled(true); findPreference("showFPS").setEnabled(true); - - // Create an alert telling them that their phone sucks - if (mEglHelper.supportsGLES3() - && mVendor.equals("Qualcomm") - && getQualcommVersion() == 14.0f) - { - AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); - builder.setTitle(R.string.device_compat_warning); - builder.setMessage(R.string.device_gles3compat_warning_msg); - builder.setPositiveButton(R.string.yes, null); - builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() - { - public void onClick(DialogInterface dialog, int which) - { - // Get an editor. - SharedPreferences.Editor editor = mPreferences.edit(); - editor.putString("gpuPref", "Software Renderer"); - editor.apply(); - mVideoBackendPreference.setValue("Software Renderer"); - } - }); - builder.show(); - } } } } - - private float getQualcommVersion() - { - final int start = mVersion.indexOf("V@") + 2; - final StringBuilder versionBuilder = new StringBuilder(); - - for (int i = start; i < mVersion.length(); i++) - { - char c = mVersion.charAt(i); - - // End of numeric portion of version string. - if (c == ' ') - break; - - versionBuilder.append(c); - } - - return Float.parseFloat(versionBuilder.toString()); - } }