diff --git a/app/src/main/java/me/shetj/mp3recorder/record/activity/mix/RecordActivity.kt b/app/src/main/java/me/shetj/mp3recorder/record/activity/mix/RecordActivity.kt index ebecba8..97d9614 100644 --- a/app/src/main/java/me/shetj/mp3recorder/record/activity/mix/RecordActivity.kt +++ b/app/src/main/java/me/shetj/mp3recorder/record/activity/mix/RecordActivity.kt @@ -40,7 +40,7 @@ class RecordActivity : BaseActivity(), EventCallback { } - override fun onActivityCreate() { + override fun initBaseView() { statuInScreen(true) canRecord() mFrameLayout = findViewById(R.id.frameLayout) diff --git a/app/src/main/java/me/shetj/mp3recorder/record/utils/MediaRecorderKit.kt b/app/src/main/java/me/shetj/mp3recorder/record/utils/MediaRecorderKit.kt index f04a9c9..231d840 100644 --- a/app/src/main/java/me/shetj/mp3recorder/record/utils/MediaRecorderKit.kt +++ b/app/src/main/java/me/shetj/mp3recorder/record/utils/MediaRecorderKit.kt @@ -60,15 +60,11 @@ object MediaRecorderKit { } fun pause(){ - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - mMediaRecorder?.pause() - } + mMediaRecorder?.pause() } fun resume(){ - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - mMediaRecorder?.resume() - } + mMediaRecorder?.resume() }