[Android] Add the overscan to the RemoteAccessShareActivity
Nicolas Pomepuy
git at videolan.org
Tue May 20 12:12:28 UTC 2025
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon May 19 09:20:35 2025 +0200| [4e33d17c83ecad0e20dde1719eb81156b3e204e0] | committer: Duncan McNamara
Add the overscan to the RemoteAccessShareActivity
> https://code.videolan.org/videolan/vlc-android/commit/4e33d17c83ecad0e20dde1719eb81156b3e204e0
---
.../gui/remoteaccess/RemoteAccessShareActivity.kt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/gui/remoteaccess/RemoteAccessShareActivity.kt b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/gui/remoteaccess/RemoteAccessShareActivity.kt
index dd2e30d8ef..aa9c857108 100644
--- a/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/gui/remoteaccess/RemoteAccessShareActivity.kt
+++ b/application/remote-access-server/src/main/java/org/videolan/vlc/remoteaccessserver/gui/remoteaccess/RemoteAccessShareActivity.kt
@@ -41,19 +41,21 @@ import com.google.android.material.appbar.MaterialToolbar
import com.google.android.material.snackbar.Snackbar
import org.videolan.resources.ACTION_START_SERVER
import org.videolan.resources.ACTION_STOP_SERVER
+import org.videolan.resources.AndroidDevices
import org.videolan.resources.REMOTE_ACCESS_ONBOARDING
+import org.videolan.resources.util.applyOverscanMargin
import org.videolan.tools.copy
import org.videolan.tools.dp
import org.videolan.tools.setGone
import org.videolan.tools.setVisible
import org.videolan.vlc.gui.BaseActivity
-import org.videolan.vlc.util.UrlUtils
-import org.videolan.vlc.util.share
import org.videolan.vlc.remoteaccessserver.R
import org.videolan.vlc.remoteaccessserver.RemoteAccessServer
import org.videolan.vlc.remoteaccessserver.ServerStatus
import org.videolan.vlc.remoteaccessserver.databinding.RemoteAccessShareActivityBinding
import org.videolan.vlc.remoteaccessserver.gui.remoteaccess.adapters.ConnnectionAdapter
+import org.videolan.vlc.util.UrlUtils
+import org.videolan.vlc.util.share
/**
@@ -71,6 +73,7 @@ class RemoteAccessShareActivity : BaseActivity() {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.remote_access_share_activity)
+ if (AndroidDevices.isTv) applyOverscanMargin(this)
val toolbar = findViewById<MaterialToolbar>(R.id.main_toolbar)
setSupportActionBar(toolbar)
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
More information about the Android
mailing list