From 312a2e326ca7701e062dd9b2ea9219bd6c4c66a8 Mon Sep 17 00:00:00 2001 From: karan Date: Wed, 25 Sep 2019 19:10:05 +0530 Subject: [PATCH] reset code --- ios/Classes/ScreenPlugin.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ios/Classes/ScreenPlugin.m b/ios/Classes/ScreenPlugin.m index e837781..0902cc1 100644 --- a/ios/Classes/ScreenPlugin.m +++ b/ios/Classes/ScreenPlugin.m @@ -17,10 +17,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { NSNumber *brightness = call.arguments[@"brightness"]; [[UIScreen mainScreen] setBrightness:brightness.floatValue]; result(nil); - } else if ([@"resetBrightness" isEqualToString:call.method]) { - [[UIScreen mainScreen] setBrightness:nil]; - result(nil); - } + } else if ([@"isKeptOn" isEqualToString:call.method]) { bool isIdleTimerDisabled = [[UIApplication sharedApplication] isIdleTimerDisabled]; result([NSNumber numberWithBool:isIdleTimerDisabled]);