File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed
java/app/grapheneos/camera Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ import androidx.camera.video.VideoCapture
37
37
import androidx.camera.view.PreviewView
38
38
import androidx.core.content.ContextCompat
39
39
import app.grapheneos.camera.analyzer.QRAnalyzer
40
- import app.grapheneos.camera.ktx.markAs16by9Layout
41
- import app.grapheneos.camera.ktx.markAs4by3Layout
42
40
import app.grapheneos.camera.ui.activities.CaptureActivity
43
41
import app.grapheneos.camera.ui.activities.MainActivity
44
42
import app.grapheneos.camera.ui.activities.MoreSettings
@@ -1164,16 +1162,7 @@ class CamConfig(private val mActivity: MainActivity) {
1164
1162
1165
1163
// Focus camera on touch/tap
1166
1164
mActivity.previewView.setOnTouchListener(mActivity)
1167
- mActivity.previewView.apply {
1168
- when (aspectRatio) {
1169
- AspectRatio .RATIO_16_9 -> {
1170
- markAs16by9Layout()
1171
- }
1172
- AspectRatio .RATIO_4_3 -> {
1173
- markAs4by3Layout()
1174
- }
1175
- }
1176
- }
1165
+
1177
1166
if (isInPhotoMode) {
1178
1167
mActivity.sensorNotifier?.forceUpdateGyro()
1179
1168
} else {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 28
28
android : id =" @+id/preview"
29
29
android : layout_width =" 0dp"
30
30
android : layout_height =" 0dp"
31
- tools : layout_constraintDimensionRatio =" H,9:16"
31
+ app : layout_constraintDimensionRatio =" H,9:16"
32
32
app : layout_constraintTop_toTopOf =" parent"
33
33
app : layout_constraintStart_toStartOf =" parent"
34
34
app : layout_constraintEnd_toEndOf =" parent" />
You can’t perform that action at this time.
0 commit comments