You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -311,14 +312,13 @@ class MainActivity : Activity() {
311
312
}
312
313
313
314
val mediaHdrString = mediaHdrStringList.joinToString(separator =", ")
314
-
val mediaIsDeviceColorGamut =if (Build.VERSION.SDK_INT>=26&&ColorSpace.get(ColorSpace.Named.SRGB).isWideGamut) getString(R.string.media_granted) else getString(R.string.media_not_granted)
315
315
val mediaIsGrantedGamut =
316
-
if (Build.VERSION.SDK_INT>=26&&window.colorMode ==COLOR_MODE_WIDE_COLOR_GAMUT) getString(R.string.media_window_available) else getString(R.string.media_window_unavailable)
316
+
if (Build.VERSION.SDK_INT>=26&&Configuration().isScreenWideColorGamut) getString(R.string.media_window_available) else getString(R.string.media_window_unavailable)
0 commit comments