mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
fix scanner
This commit is contained in:
parent
12d260c6d7
commit
292d655bc7
@ -1,9 +1,7 @@
|
||||
package io.nekohasekai.sagernet.ui
|
||||
|
||||
import android.Manifest
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.pm.ShortcutManager
|
||||
import android.graphics.ImageDecoder
|
||||
import android.net.Uri
|
||||
@ -39,12 +37,9 @@ class ScannerActivity : ThemedActivity(),
|
||||
lateinit var binding: LayoutScannerBinding
|
||||
lateinit var cameraScan: CameraScan
|
||||
|
||||
@SuppressLint("SourceLockedOrientationActivity")
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 25) getSystemService<ShortcutManager>()!!.reportShortcutUsed("scan")
|
||||
binding = LayoutScannerBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
|
||||
@ -6,8 +6,8 @@ mkdir -p $GOPATH
|
||||
cd $golang
|
||||
|
||||
if [ ! -f "go/bin/go" ]; then
|
||||
curl -Lso go.tar.gz https://go.dev/dl/go1.20.3.linux-amd64.tar.gz
|
||||
echo "979694c2c25c735755bf26f4f45e19e64e4811d661dd07b8c010f7a8e18adfca go.tar.gz" | sha256sum -c -
|
||||
curl -Lso go.tar.gz https://go.dev/dl/go1.20.5.linux-amd64.tar.gz
|
||||
echo "d7ec48cde0d3d2be2c69203bc3e0a44de8660b9c09a6e85c4732a3f7dc442612 go.tar.gz" | sha256sum -c -
|
||||
tar xzf go.tar.gz
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user