[Android] Prevent beta notice to be displayed on TV

Nicolas Pomepuy git at videolan.org
Wed Aug 7 14:09:00 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Aug  7 11:20:43 2019 +0200| [8796cd0d7982e7711277f8d44797fa2a63abee5f] | committer: Geoffrey Métais

Prevent beta notice to be displayed on TV

> https://code.videolan.org/videolan/vlc-android/commit/8796cd0d7982e7711277f8d44797fa2a63abee5f
---

 vlc-android/src/org/videolan/vlc/StartActivity.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.kt b/vlc-android/src/org/videolan/vlc/StartActivity.kt
index 0a421edcb..5bf994619 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.kt
@@ -79,7 +79,7 @@ class StartActivity : FragmentActivity() {
         if (AndroidUtil.isNougatOrLater) UiTools.setLocale(this)
 
         try {
-            if (AppUtils.isBeta(this) && !Settings.getInstance(this).getBoolean(BETA_WELCOME, false)) {
+            if (!Settings.showTvUi && AppUtils.isBeta(this) && !Settings.getInstance(this).getBoolean(BETA_WELCOME, false)) {
                 val intent = Intent(this, BetaWelcomeActivity::class.java)
                 intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION)
                 startActivityForResult(intent, SEND_CRASH_RESULT)



More information about the Android mailing list