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:
parent
3868b60cb7
commit
fa50070318
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue