Android TV (#933)
* Disable touchscreen requirement * Add Android TV feature * Add Android TV draft banner * Add Android TV check method
This commit is contained in:
parent
ffe2314d47
commit
f978f55e7f
8 changed files with 25 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package org.amnezia.vpn
|
||||
|
||||
import android.Manifest
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.AlertDialog
|
||||
import android.app.NotificationManager
|
||||
import android.content.BroadcastReceiver
|
||||
|
|
@ -556,8 +557,12 @@ class AmneziaActivity : QtActivity() {
|
|||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@SuppressLint("UnsupportedChromeOsCameraSystemFeature")
|
||||
fun isCameraPresent(): Boolean = applicationContext.packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)
|
||||
|
||||
@Suppress("unused")
|
||||
fun isOnTv(): Boolean = applicationContext.packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)
|
||||
|
||||
@Suppress("unused")
|
||||
fun startQrCodeReader() {
|
||||
Log.v(TAG, "Start camera")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue