Force QR scanner to portrait orientation
Override the ZXing CaptureActivity orientation in the manifest to force portrait mode, preventing the scanner from switching to landscape mode.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.mattintech.simplelogupload">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
@@ -49,6 +50,15 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- QR Code Scanner Activity -->
|
||||
<activity
|
||||
android:name="com.journeyapps.barcodescanner.CaptureActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:stateNotNeeded="true"
|
||||
android:theme="@style/zxing_CaptureTheme"
|
||||
android:windowSoftInputMode="stateAlwaysHidden"
|
||||
tools:replace="screenOrientation" />
|
||||
|
||||
<!-- File Upload Foreground Service -->
|
||||
<service
|
||||
android:name=".service.FileUploadForegroundService"
|
||||
|
||||
Reference in New Issue
Block a user