Fix rotation

This commit is contained in:
Yann Diorcet 2012-11-27 10:07:50 +01:00
parent 82ac3204e4
commit 1a242ffdf2
6 changed files with 12 additions and 12 deletions

View file

@ -428,7 +428,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -436,7 +436,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}

View file

@ -127,7 +127,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -135,7 +135,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}

View file

@ -62,7 +62,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -70,7 +70,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}

View file

@ -89,7 +89,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -97,7 +97,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}

View file

@ -89,7 +89,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -97,7 +97,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}

View file

@ -71,7 +71,7 @@
if ([LinphoneManager runningOnIpad]) {
return YES;
} else {
return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
return interfaceOrientation == UIInterfaceOrientationPortrait;
}
}
@ -79,7 +79,7 @@
if ([LinphoneManager runningOnIpad]) {
return UIInterfaceOrientationMaskAll;
} else {
return [super supportedInterfaceOrientations];
return UIInterfaceOrientationMaskPortrait;
}
}