Fix isGoogleDevice method

Originally, we thought the upside down selfie photos issue was
exclusive to Nexus 6 and Pixel devices. Apparently it's reproducible on
Nexus 5 as well.
This commit is contained in:
Guy Carmeli 2017-08-22 17:19:40 +03:00
parent 3868b60cb7
commit fa50070318
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import android.os.Build;
public class DeviceUtils {
public static boolean isGoogleDevice() {
return Build.MANUFACTURER.toLowerCase().contains("google") && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
return (Build.MANUFACTURER.toLowerCase().contains("google") && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) ||
(Build.MANUFACTURER.toLowerCase().contains("lge") && Build.BRAND.toLowerCase().equals("google"));
}
}