[Android] Fix TV settings theme
Geoffrey Métais
git at videolan.org
Thu Dec 13 17:28:03 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 13 17:26:39 2018 +0100| [8a290d4cde1e5d6a4e954ce376f585e87b4bcaee] | committer: Geoffrey Métais
Fix TV settings theme
> https://code.videolan.org/videolan/vlc-android/commit/8a290d4cde1e5d6a4e954ce376f585e87b4bcaee
---
vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java | 2 +-
.../src/org/videolan/vlc/gui/tv/preferences/PreferencesActivity.java | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
index d764069bf..1068c5508 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.java
@@ -70,7 +70,7 @@ public class SecondaryActivity extends ContentActivity {
final CoordinatorLayout.LayoutParams params =
(CoordinatorLayout.LayoutParams) fph.getLayoutParams();
- if (AndroidDevices.showTvUi(this)) {
+ if (AndroidDevices.isTv) {
TvUtil.INSTANCE.applyOverscanMargin(this);
params.topMargin = getResources().getDimensionPixelSize(UiTools.getResourceFromAttribute(this, R.attr.actionBarSize));
} else
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesActivity.java
index ecfe0bb83..7e17a85b8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesActivity.java
@@ -51,9 +51,6 @@ public class PreferencesActivity extends FragmentActivity implements PlaybackSer
@Override
protected void onCreate(Bundle savedInstanceState) {
- /* Theme must be applied before super.onCreate */
- applyTheme();
-
super.onCreate(savedInstanceState);
setContentView(R.layout.tv_preferences_activity);
More information about the Android
mailing list