[Android] Set overscan padding to licence and about views

Geoffrey Métais git at videolan.org
Fri May 27 17:54:33 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 27 17:11:12 2016 +0200| [c253a4c604429bc7181522bfc41e514874397d0d] | committer: Geoffrey Métais

Set overscan padding to licence and about views

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

 vlc-android/src/org/videolan/vlc/gui/tv/AboutActivity.java   | 1 +
 vlc-android/src/org/videolan/vlc/gui/tv/LicenceActivity.java | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/AboutActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/AboutActivity.java
index 34fbdd2..31d1bbc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/AboutActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/AboutActivity.java
@@ -12,5 +12,6 @@ public class AboutActivity extends Activity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.about_main);
         UiTools.fillAboutView(getWindow().getDecorView().getRootView());
+        TvUtil.applyOverscanMargin(this);
     }
 }
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/LicenceActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/LicenceActivity.java
index 317ad39..1ad1973 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/LicenceActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/LicenceActivity.java
@@ -1,7 +1,9 @@
 package org.videolan.vlc.gui.tv;
 
 import android.app.Activity;
+import android.graphics.Color;
 import android.os.Bundle;
+import android.view.View;
 import android.webkit.WebView;
 
 import org.videolan.vlc.R;
@@ -16,5 +18,7 @@ public class LicenceActivity extends Activity {
         WebView licence = new WebView(this);
         licence.loadData(Util.readAsset("licence.htm", "").replace("!COMMITID!", revision), "text/html", "UTF8");
         setContentView(licence);
+        ((View)licence.getParent()).setBackgroundColor(Color.LTGRAY);
+        TvUtil.applyOverscanMargin(this);
     }
 }



More information about the Android mailing list