mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
change type string to bool in Wakelock class
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user