Skip to content

Commit

Permalink
Just disable rotation. It doesn't work with ViewPager.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Sep 25, 2011
1 parent 280b11f commit c0f0358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<application android:label="@string/app_name">
<activity android:name="LaunchActivity"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/LaunchActivity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class LaunchActivity extends FragmentActivity {
}

override def onConfigurationChanged(c : Configuration) {
// ViewPager does not support rotations.
super.onConfigurationChanged(c)
}
}
Expand Down

0 comments on commit c0f0358

Please sign in to comment.