summaryrefslogtreecommitdiff
path: root/Tweak.x
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2020-07-07 13:37:24 -0500
committerFivePixels <o5pxels@gmail.com>2020-07-07 13:37:24 -0500
commita692718a2ae3d46db6c63b68a924f66f671ba004 (patch)
tree7a5ad3fa2c6744b53637c8c0e3bc5b68d3fdb3a4 /Tweak.x
parent20dcfabbfbed12577ab175e88da23024c69db47a (diff)
downloadintemperate-a692718a2ae3d46db6c63b68a924f66f671ba004.tar.xz
intemperate-a692718a2ae3d46db6c63b68a924f66f671ba004.zip
New twitter ID and add alert when blocking begins
Diffstat (limited to 'Tweak.x')
-rw-r--r--Tweak.x9
1 files changed, 5 insertions, 4 deletions
diff --git a/Tweak.x b/Tweak.x
index 4856299..c8b2d0a 100644
--- a/Tweak.x
+++ b/Tweak.x
@@ -19,17 +19,18 @@ static void updatePrefs() {
%group latestSyntax
%hook SBThermalController
-
-(void)_setBlocked:(BOOL)arg1 {
+ UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Intemperate" message:@"Your device attempted to lockout your device due to it's thermal monitoring. Proceed with caution." preferredStyle:UIAlertControllerStyleAlert];
+ UIAlertAction *close = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+ }];
+ [alert addAction:close];
+ [[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:alert animated:YES completion:nil];
arg1 = NO;
%orig(arg1);
}
-(BOOL)isThermalBlocked {
return NO;
}
--(BOOL)_isBlocked {
- return NO;
-}
-(BOOL)isInSunlight {
return NO;
}