Skip to content

Commit 11db044

Browse files
#2 support landscape mode (iOS landscape fix)
1 parent a9fba9b commit 11db044

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="org.devgeeks.privacyscreen" version="0.0.6">
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="org.devgeeks.privacyscreen" version="0.0.7">
33

44
<name>PrivacyScreenPlugin</name>
55
<description>Secures your app from displaying a screenshot in task switchers under Android and iOS. Keeps sensitive information private.</description>

src/ios/AppDelegate+privacyscreen.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ - (void)applicationWillResignActive:(UIApplication *)application
2727
if (splash == NULL) {
2828
self.window.hidden = YES;
2929
} else {
30-
imageView = [[UIImageView alloc]initWithFrame:[self.window frame]];
30+
imageView = [[UIImageView alloc]initWithFrame:[self.viewController.view bounds]];
3131
[imageView setImage:splash];
3232
[self.viewController.view addSubview:imageView];
3333
}

0 commit comments

Comments
 (0)