iOS9.3 patch
Adds iOS 9.3 support, should also works for iOS 7/8/9.0-9.1 ( not tested due to lack of device ), not sure for iOS 9.2. Previous design only for iOS9, so pangu8 protection was replaced to pangu 9.2-9.3 protection.
In fact seems this dialog not need to show in latest build. Previous I’m using apt-get remove then uicache way, and it disappears too late( almost 10 secs after clicking) so I added the dialog. Then I changed to the new way, first unregister app to hide the icon, then apt-get remove in background; this way the dialog seems unnecessary, since user will have no time on click it again, but I forgot to remove the code. Let me modify it tomorrow :P too late in me time region, almost sun rising, too easy to introduce bug.
在 2016年12月16日,上午5:05,Ryan Burke [email protected] 写道:
@ryanb93 commented on this pull request.
In CyDelete.xm https://github.com/ryanb93/CyDelete/pull/9:
SBApplication *app = [icon application];id pkgName = ownerForSBApplication(app); if(pkgName != [NSNull null]) { uninstallClickedForIcon(icon); }
%orig;
if(cydelete_IOSVersionAbove92() && [[iconPackagesDict allKeys] containsObject:[app bundleIdentifier]]) {//new mechanism: iOS 9.2 above will not automatically trigger uninstall, we've to call it manuallyBOOL contains = NO;for(CDUninstallDpkgOperation *operation in [uninstallQueue operations]){if([operation.package isEqualToString:[app bundleIdentifier]]){contains = YES;break;}}if(contains) {UIAlertController* alert=[UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"%@ IS uninstalling",[app displayName]] message:@"Please WAIT A SEC" preferredStyle:UIAlertControllerStyleAlert];In addition to this, we should probably be using localized strings here.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ryanb93/CyDelete/pull/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AADjbsCB1lJs-nQTT9ht4RkdOtULpFt1ks5rIauvgaJpZM4LOjHZ.