[Android] TV: Fix theme setup

Geoffrey Métais git at videolan.org
Tue Apr 2 10:07:18 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr  2 10:06:48 2019 +0200| [8fcba75a636018d92fe38d7fd9a08f40940331db] | committer: Geoffrey Métais

TV: Fix theme setup

> https://code.videolan.org/videolan/vlc-android/commit/8fcba75a636018d92fe38d7fd9a08f40940331db
---

 vlc-android/src/org/videolan/vlc/gui/BaseActivity.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/BaseActivity.java b/vlc-android/src/org/videolan/vlc/gui/BaseActivity.java
index 11f6d72fb..4fdf8d240 100644
--- a/vlc-android/src/org/videolan/vlc/gui/BaseActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/BaseActivity.java
@@ -3,6 +3,7 @@ package org.videolan.vlc.gui;
 import android.content.SharedPreferences;
 import android.os.Bundle;
 
+import org.videolan.vlc.R;
 import org.videolan.vlc.util.AndroidDevices;
 import org.videolan.vlc.util.Settings;
 
@@ -24,7 +25,8 @@ public class BaseActivity extends AppCompatActivity {
 
     private void applyTheme() {
         if (AndroidDevices.showTvUi(this)) {
-            AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
+            AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
+            setTheme(R.style.Theme_VLC_Black);
             return;
         }
         if (mSettings.contains("app_theme")) {



More information about the Android mailing list