(val)
| 86 | } |
| 87 | |
| 88 | static async setScreenMode(val) { |
| 89 | if (Utils.isAndroid) { |
| 90 | try { |
| 91 | await SystemSettingNative.setScreenMode(val) |
| 92 | } catch (e) { |
| 93 | return false |
| 94 | } |
| 95 | } |
| 96 | return true |
| 97 | } |
| 98 | |
| 99 | static async saveBrightness() { |
| 100 | SystemSetting.saveBrightnessVal = await SystemSetting.getBrightness() |
no outgoing calls
no test coverage detected