disable color mode change
This commit is contained in:
parent
c778bd6e9e
commit
743f8f72f9
1 changed files with 8 additions and 7 deletions
|
@ -140,12 +140,13 @@ class PlatformWindowService implements WindowService {
|
|||
|
||||
@override
|
||||
Future<void> setHdrColorMode(bool on) async {
|
||||
try {
|
||||
await _platform.invokeMethod('setHdrColorMode', <String, dynamic>{
|
||||
'on': on,
|
||||
});
|
||||
} on PlatformException catch (e, stack) {
|
||||
await reportService.recordError(e, stack);
|
||||
}
|
||||
// TODO TLAD [hdr] enable when ready
|
||||
// try {
|
||||
// await _platform.invokeMethod('setHdrColorMode', <String, dynamic>{
|
||||
// 'on': on,
|
||||
// });
|
||||
// } on PlatformException catch (e, stack) {
|
||||
// await reportService.recordError(e, stack);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue