Bug 1142988 - Try harder to disable Flash on Tegra devices r=droeh

This commit is contained in:
James Willcox 2016-03-03 10:09:21 -06:00
Родитель 57a7ffae7d
Коммит 0ca72f55ed
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1935,7 +1935,8 @@ public class GeckoAppShell
// An awful hack to detect Tegra devices. Easiest way to do it without spinning up a EGL context.
boolean isTegra = (new File("/system/lib/hw/gralloc.tegra.so")).exists() ||
(new File("/system/lib/hw/gralloc.tegra3.so")).exists();
(new File("/system/lib/hw/gralloc.tegra3.so")).exists() ||
(new File("/sys/class/nvidia-gpu")).exists();
if (isTegra) {
// disable on KitKat (bug 957694)
if (Versions.feature19Plus) {