mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Improve formatting
This commit is contained in:
parent
54a2370fe0
commit
7892aa90fd
@ -84,6 +84,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
//Opens the file preview
|
//Opens the file preview
|
||||||
CGRect rect;
|
CGRect rect;
|
||||||
|
|
||||||
if ([command.arguments count] >= 4) {
|
if ([command.arguments count] >= 4) {
|
||||||
NSArray *positionValues = [command.arguments objectAtIndex:3];
|
NSArray *positionValues = [command.arguments objectAtIndex:3];
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
wasOpened = [docController presentOpenInMenuFromRect:rect inView:cont.view animated:YES];
|
wasOpened = [docController presentOpenInMenuFromRect:rect inView:cont.view animated:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wasOpened) {
|
if (wasOpened) {
|
||||||
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString: @""];
|
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString: @""];
|
||||||
} else {
|
} else {
|
||||||
NSDictionary *jsonObj = [ [NSDictionary alloc]
|
NSDictionary *jsonObj = [ [NSDictionary alloc]
|
||||||
@ -133,6 +134,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
while (presentingViewController.presentedViewController != nil && ![presentingViewController.presentedViewController isBeingDismissed]){
|
while (presentingViewController.presentedViewController != nil && ![presentingViewController.presentedViewController isBeingDismissed]){
|
||||||
presentingViewController = presentingViewController.presentedViewController;
|
presentingViewController = presentingViewController.presentedViewController;
|
||||||
}
|
}
|
||||||
|
|
||||||
return presentingViewController;
|
return presentingViewController;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user