[Android] Revert "Respect locked rotation setting in video player"

Geoffrey Métais git at videolan.org
Tue Sep 8 13:22:39 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Sep  8 13:20:25 2015 +0200| [dc85bf4504712e27896badb9bf6c398cf5993826] | committer: Geoffrey Métais

Revert "Respect locked rotation setting in video player"

This reverts commit 95ff22027721001502d8dc40cfa003226be70456.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=dc85bf4504712e27896badb9bf6c398cf5993826
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java      |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 74c2dc2..da26ba0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -547,12 +547,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
     @Override
     public void onConfigurationChanged(Configuration newConfig) {
-        //Respect user locked rotation setting
-        try {
-            if (0 == Settings.System.getInt(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION))
-                return;
-        } catch (SettingNotFoundException e) {}
-
         if (!AndroidUtil.isHoneycombOrLater())
             changeSurfaceLayout();
         super.onConfigurationChanged(newConfig);



More information about the Android mailing list