mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-06 14:07:32 +00:00
chore(android): Merge branch 'beta' into fix/android/cloud-catalog-for-local-test
This commit is contained in:
commit
107198cfd4
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,6 @@
|
|||
*/
|
||||
- (void)requestPrivacyAccess:(void (^)(void))withCompletionHandler
|
||||
{
|
||||
_completionHandler = withCompletionHandler;
|
||||
BOOL hasAccessibility = NO;
|
||||
|
||||
// check if we already have accessibility
|
||||
|
|
@ -74,7 +73,11 @@
|
|||
|
||||
if (hasAccessibility) {
|
||||
NSLog(@"already have Accessibility: no need to make request.");
|
||||
// call completionHandler immediately -> privacyDialog will not be presented
|
||||
withCompletionHandler();
|
||||
} else {
|
||||
// set completionHandler to be called after privacyDialog is dismissed
|
||||
_completionHandler = withCompletionHandler;
|
||||
NSLog(@"do not have Accessibility, present Privacy Dialog");
|
||||
[self showPrivacyDialog];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue