fix: 修改拍照方向错误的问题

This commit is contained in:
xiaoyan 2023-02-14 16:27:10 +08:00
parent 8aa88879f2
commit 9ffa98c931
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@
android:launchMode="singleTop" />
<activity
android:name=".activity.PhotographActivity"
android:screenOrientation="landscape"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|navigation"
android:launchMode="singleTop" />

View File

@ -109,7 +109,7 @@ public class PhotographActivity extends BaseActivity implements View.OnClickL
if (getIntent() != null) {
photo_path = getIntent().getStringExtra(Constant.INTENT_PHOTO_PATH);
}
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
// this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
CameraLogger.setLogLevel(CameraLogger.LEVEL_VERBOSE);
cameraView = findViewById(R.id.camera);
cameraView.setOnClickListener(this);