[Android] VideoPlayerActivity: remove redundant string
Ludovic Fauvet
etix at videolan.org
Sat Nov 17 17:42:12 CET 2012
On Sat, Nov 17, 2012 at 3:22 PM, Edward Wang <git at videolan.org> wrote:
> vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Nov 17 09:22:01 2012 -0500| [7921d0a4b011a62ea5ed9cb10f79478aeb22d815] | committer: Edward Wang
>
> VideoPlayerActivity: remove redundant string
>
>> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7921d0a4b011a62ea5ed9cb10f79478aeb22d815
> ---
>
> vlc-android/res/values/strings.xml | 1 -
> .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 5 ++---
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
> index 369662d..10f9871 100644
> --- a/vlc-android/res/values/strings.xml
> +++ b/vlc-android/res/values/strings.xml
> @@ -168,7 +168,6 @@
> <string name="enable_wheel_bar">Enable wheel bar</string>
> <string name="enable_gesture_brightness">Enable brightness gesture</string>
> <string name="screen_orientation">Screen orientation</string>
> - <string name="screen_orientation_default" translatable="false">4</string>
> <string name="screen_orientation_sensor">Sensor orientation</string>
> <string name="screen_orientation_start_lock">Locked at start</string>
> <string name="screen_orientation_portrait">Portrait</string>
> 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 6eedc3f..eb6d0a3 100644
> --- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
> +++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
> @@ -210,9 +210,8 @@ public class VideoPlayerActivity extends Activity {
>
> mEnableWheelbar = pref.getBoolean("enable_wheel_bar", false);
> mEnableBrightnessGesture = pref.getBoolean("enable_gesture_brightness", true);
> -
> - mScreenOrientation= Integer.valueOf(
> - pref.getString("screen_orientation_value", getString(R.string.screen_orientation_default)));
> + mScreenOrientation = Integer.valueOf(
> + pref.getString("screen_orientation_value", "4" /*SCREEN_ORIENTATION_SENSOR*/));
>
> mControls = mEnableWheelbar
> ? new PlayerControlWheel(this)
In preferences.xml:87 there is still a reference to the
screen_orientation_default string.
--
Ludovic Fauvet
More information about the Android
mailing list