mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 03:23:07 +00:00
Fix crash on Lenovo Mirage Solo
This commit is contained in:
parent
3de9765eaa
commit
7126055ad6
@ -213,11 +213,14 @@ public class StreamSettings extends Activity {
|
|||||||
|
|
||||||
// We must now ensure our display is compatible with HDR10
|
// We must now ensure our display is compatible with HDR10
|
||||||
boolean foundHdr10 = false;
|
boolean foundHdr10 = false;
|
||||||
|
if (hdrCaps != null) {
|
||||||
|
// getHdrCapabilities() returns null on Lenovo Lenovo Mirage Solo (vega), Android 8.0
|
||||||
for (int hdrType : hdrCaps.getSupportedHdrTypes()) {
|
for (int hdrType : hdrCaps.getSupportedHdrTypes()) {
|
||||||
if (hdrType == Display.HdrCapabilities.HDR_TYPE_HDR10) {
|
if (hdrType == Display.HdrCapabilities.HDR_TYPE_HDR10) {
|
||||||
foundHdr10 = true;
|
foundHdr10 = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!foundHdr10) {
|
if (!foundHdr10) {
|
||||||
LimeLog.info("Excluding HDR toggle based on display capabilities");
|
LimeLog.info("Excluding HDR toggle based on display capabilities");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user