Skip to content

Commit

Permalink
修复默认样式下,预览视频有错误的顶部栏
Browse files Browse the repository at this point in the history
  • Loading branch information
aaatttcccc committed Feb 17, 2022
1 parent 013e17c commit 0ab4ed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.zhongjh.cameraapp.fileprovider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import com.zhongjh.albumcamerarecorder.MainActivity;
import com.zhongjh.albumcamerarecorder.R;
import com.zhongjh.albumcamerarecorder.camera.util.FileUtil;
import com.zhongjh.albumcamerarecorder.settings.GlobalSpec;
Expand Down Expand Up @@ -67,7 +68,7 @@ public class PreviewVideoActivity extends AppCompatActivity {
/**
* 拍摄配置
*/
private GlobalSpec mGlobalSpec;
GlobalSpec mGlobalSpec= GlobalSpec.getInstance();
/**
* 迁移视频的异步线程
*/
Expand All @@ -90,12 +91,11 @@ public static void startActivity(Fragment fragment, String path) {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
setRequestedOrientation(GlobalSpec.getInstance().orientation);
setTheme(mGlobalSpec.themeId);
StatusBarUtils.initStatusBar(PreviewVideoActivity.this);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_preview_video);
mLocalFile.setPath(getIntent().getStringExtra(PATH));
// 初始化设置
mGlobalSpec = GlobalSpec.getInstance();
initView();
initListener();
initData();
Expand Down

0 comments on commit 0ab4ed0

Please sign in to comment.