[Android] Sleep Timer : re-enable for TV

Alexandre Perraud git at videolan.org
Thu Jul 9 18:14:21 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu Jul  9 17:28:18 2015 +0200| [af6842612bb36535116bdb309f4b59e7d845781e] | committer: Geoffrey Métais

Sleep Timer : re-enable for TV

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

 .../src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java   |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index f488f24..66ca4aa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -153,13 +153,9 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
 
         mJumpTitle.setOnClickListener(this);
 
-        if (BuildConfig.tv) {
-            root.findViewById(R.id.sleep_timer_container).setVisibility(View.GONE);
-        } else {
-            mSleepTitle.setOnClickListener(this);
-            mSleepTime.setOnClickListener(this);
-            mSleepCancel.setOnClickListener(this);
-        }
+        mSleepTitle.setOnClickListener(this);
+        mSleepTime.setOnClickListener(this);
+        mSleepCancel.setOnClickListener(this);
 
         mReset.setOnFocusChangeListener(mFocusListener);
         mSleepTime.setOnFocusChangeListener(mFocusListener);



More information about the Android mailing list