[Android] [PATCH] Do not show tipviews in debug
Geoffrey Métais
geoffrey.metais at gmail.com
Sat Dec 5 13:32:50 CET 2015
---
vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java | 2 ++
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index 16d75e2..f3f38f2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -179,6 +179,8 @@ public class AudioPlayerContainerActivity extends AppCompatActivity implements P
* @param settingKey the setting key to check if the view must be displayed or not.
*/
public void showTipViewIfNeeded(final int layoutId, final String settingKey) {
+ if (BuildConfig.DEBUG)
+ return;
if (!mSettings.getBoolean(settingKey, false) && !BuildConfig.tv) {
removeTipViewIfDisplayed();
View v = LayoutInflater.from(this).inflate(layoutId, null);
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 69865f2..6f00bc4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -476,7 +476,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
: getScreenOrientation());
// Tips
mOverlayTips = findViewById(R.id.player_overlay_tips);
- if(BuildConfig.tv || mSettings.getBoolean(PREF_TIPS_SHOWN, false))
+ if(BuildConfig.DEBUG || BuildConfig.tv || mSettings.getBoolean(PREF_TIPS_SHOWN, false))
mOverlayTips.setVisibility(View.GONE);
else {
mOverlayTips.bringToFront();
--
2.5.0
More information about the Android
mailing list