summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/mobileterminal/_metadata/version2
-rw-r--r--data/mobileterminal/orientation.diff22
2 files changed, 23 insertions, 1 deletions
diff --git a/data/mobileterminal/_metadata/version b/data/mobileterminal/_metadata/version
index 9c6f0c3e0..c8699b1ba 100644
--- a/data/mobileterminal/_metadata/version
+++ b/data/mobileterminal/_metadata/version
@@ -1 +1 @@
-364
+364.1
diff --git a/data/mobileterminal/orientation.diff b/data/mobileterminal/orientation.diff
new file mode 100644
index 000000000..07ce177d3
--- /dev/null
+++ b/data/mobileterminal/orientation.diff
@@ -0,0 +1,22 @@
+diff -ru mobileterminal-364/Sources/UI/MainViewController.m mobileterminal-364+iPhone/Sources/UI/MainViewController.m
+--- mobileterminal-364/Sources/UI/MainViewController.m 2009-04-26 07:54:34.000000000 +0000
++++ mobileterminal-364+iPhone/Sources/UI/MainViewController.m 2009-08-14 12:09:20.000000000 +0000
+@@ -265,6 +265,8 @@
+
+ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
+ {
++ bool yes = targetOrientation_ == UIDeviceOrientationUnknown;
++
+ int currentOrientation = [self interfaceOrientation];
+ if (currentOrientation && currentOrientation != orientation) {
+ targetOrientation_ = orientation;
+@@ -280,6 +282,9 @@
+ [keyboardView setAlpha:0.0f];
+ [self.activeTextView.tiledView setAlpha:0.0f];
+ [UIView commitAnimations];
++ } else if (yes) {
++ targetOrientation_ = orientation;
++ return YES;
+ }
+
+ return NO;