Merge pull request #624 from dntil/master
Add auto screen rotation support.
This commit is contained in:
4 files changed
+10
No files matched your search
@@ -370,6 +370,9 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan
|
||||
case 2:
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
|
||||
break;
|
||||
case 3:
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
|
||||
break;
|
||||
}
|
||||
setRequestedOrientation(orientation);
|
||||
|
||||
@@ -841,6 +844,9 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan
|
||||
case 2:
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;
|
||||
break;
|
||||
case 3:
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
|
||||
break;
|
||||
}
|
||||
setRequestedOrientation(orientation);
|
||||
mGalleryView.setLayoutMode(layoutMode);
|
||||
|
||||
Reference in new issue
Block a user