mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
Merge pull request #248 from cake-tech/CW-fix-wakelock-bug
change type string to bool in Wakelock class
This commit is contained in:
commit
18a1f60433
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ class WakeLock {
|
||||||
|
|
||||||
Future<void> enableWake() async {
|
Future<void> enableWake() async {
|
||||||
try {
|
try {
|
||||||
await _utils.invokeMethod<String>('enableWakeScreen');
|
await _utils.invokeMethod<bool>('enableWakeScreen');
|
||||||
} on PlatformException catch (_) {
|
} on PlatformException catch (_) {
|
||||||
print('Failed enabling screen wakelock');
|
print('Failed enabling screen wakelock');
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ class WakeLock {
|
||||||
|
|
||||||
Future<void> disableWake() async {
|
Future<void> disableWake() async {
|
||||||
try {
|
try {
|
||||||
await _utils.invokeMethod<String>('disableWakeScreen');
|
await _utils.invokeMethod<bool>('disableWakeScreen');
|
||||||
} on PlatformException catch (_) {
|
} on PlatformException catch (_) {
|
||||||
print('Failed enabling screen wakelock');
|
print('Failed enabling screen wakelock');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue