Commit c253a4c6 authored by Geoffrey Métais's avatar Geoffrey Métais

Set overscan padding to licence and about views

parent f395f877
...@@ -12,5 +12,6 @@ public class AboutActivity extends Activity { ...@@ -12,5 +12,6 @@ public class AboutActivity extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.about_main); setContentView(R.layout.about_main);
UiTools.fillAboutView(getWindow().getDecorView().getRootView()); UiTools.fillAboutView(getWindow().getDecorView().getRootView());
TvUtil.applyOverscanMargin(this);
} }
} }
package org.videolan.vlc.gui.tv; package org.videolan.vlc.gui.tv;
import android.app.Activity; import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
import android.webkit.WebView; import android.webkit.WebView;
import org.videolan.vlc.R; import org.videolan.vlc.R;
...@@ -16,5 +18,7 @@ public class LicenceActivity extends Activity { ...@@ -16,5 +18,7 @@ public class LicenceActivity extends Activity {
WebView licence = new WebView(this); WebView licence = new WebView(this);
licence.loadData(Util.readAsset("licence.htm", "").replace("!COMMITID!", revision), "text/html", "UTF8"); licence.loadData(Util.readAsset("licence.htm", "").replace("!COMMITID!", revision), "text/html", "UTF8");
setContentView(licence); setContentView(licence);
((View)licence.getParent()).setBackgroundColor(Color.LTGRAY);
TvUtil.applyOverscanMargin(this);
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment