ios/mail: prevent a weird error appearing by not animating mail window
+ fix cython warning
This commit is contained in:
parent
bc48d359e7
commit
a3e533f1fc
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ IOS module is wrapping some part of the IOS features.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from python_ref cimport Py_INCREF, Py_DECREF
|
from cpython cimport Py_INCREF, Py_DECREF
|
||||||
from os.path import basename
|
from os.path import basename
|
||||||
|
|
||||||
cdef extern from "ios_wrapper.h":
|
cdef extern from "ios_wrapper.h":
|
||||||
|
|
|
@ -59,7 +59,7 @@ UIViewController *get_viewcontroller(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
[viewController becomeFirstResponder];
|
[viewController becomeFirstResponder];
|
||||||
[viewController dismissModalViewControllerAnimated:YES];
|
[viewController dismissModalViewControllerAnimated:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -99,7 +99,7 @@ int ios_send_email(char *subject, char *text, char *mimetype, char *filename,
|
||||||
}
|
}
|
||||||
|
|
||||||
controller.modalPresentationStyle = UIModalPresentationPageSheet;
|
controller.modalPresentationStyle = UIModalPresentationPageSheet;
|
||||||
[viewController presentModalViewController:controller animated:YES];
|
[viewController presentModalViewController:controller animated:NO];
|
||||||
[controller release];
|
[controller release];
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue