Toasts are now show on top of an InAppBrowser window (iOS).

This commit is contained in:
eddyverbruggen@gmail.com 2015-04-22 20:37:30 +02:00
parent bd2cb63e52
commit 75819ee95e
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="nl.x-services.plugins.toast"
version="2.0.4">
version="2.0.5">
<name>Toast</name>

View File

@ -70,7 +70,7 @@ static UIView *prevToast = NULL;
- (void)makeToast:(NSString *)message duration:(NSTimeInterval)duration position:(id)position {
UIView *toast = [self viewForMessage:message title:nil image:nil];
[self showToast:toast duration:duration position:position];
[self showToast:toast duration:duration position:position];
}
- (void)makeToast:(NSString *)message duration:(NSTimeInterval)duration position:(id)position title:(NSString *)title {
@ -106,8 +106,9 @@ static UIView *prevToast = NULL;
toast.userInteractionEnabled = YES;
toast.exclusiveTouch = YES;
}
[self addSubview:toast];
// make sure that if InAppBrowser is active, we're still showing Toasts on top of it
[self.superview.superview addSubview:toast];
[UIView animateWithDuration:CSToastFadeDuration
delay:0.0