diff --git a/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.kt b/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.kt index 8686937..8feae3c 100644 --- a/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.kt +++ b/app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.kt @@ -13,7 +13,6 @@ import android.view.SurfaceHolder import android.view.SurfaceView import android.view.View import android.widget.Button -import android.widget.Toast import android.widget.ToggleButton import com.frank.ffmpeg.FFmpegApplication @@ -159,7 +158,7 @@ class FilterActivity : BaseActivity(), SurfaceHolder.Callback { doFilterPlay(4) btnSound!!.isChecked = true } else { - Toast.makeText(this@FilterActivity, getString(R.string.file_not_found), Toast.LENGTH_SHORT).show() + showSelectFile() } } diff --git a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt index 103c03b..7d2bd35 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt +++ b/app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt @@ -209,16 +209,6 @@ object FileUtil { return null } - fun ensureDir(fileDir: String): Boolean { - if (TextUtils.isEmpty(fileDir)) { - return false - } - val listFile = File(fileDir) - return if (!listFile.exists()) { - listFile.mkdirs() - } else true - } - fun deleteFile(path: String): Boolean { if (TextUtils.isEmpty(path)) { return false diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml index 566ef6d..a850c58 100644 --- a/app/src/main/res/values-en/strings.xml +++ b/app/src/main/res/values-en/strings.xml @@ -90,7 +90,7 @@ sharp Select file - Please select a correct file + Please select or set a correct file File not found Please click the right-top button to select file wrong audio file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 09680fb..022f3c7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -90,7 +90,7 @@ 锐化 选择文件 - 请选择正确文件 + 请选择或设置正确文件 文件不存在 请点击右上角菜单选择文件 非音频文件 diff --git a/doc/JNI_develop_practice.md b/doc/JNI_develop_practice.md index 1ad6c45..d9c3ada 100644 --- a/doc/JNI_develop_practice.md +++ b/doc/JNI_develop_practice.md @@ -6,5 +6,5 @@ JNI是Java本地接口,定义Android从应用代码(以Java或kotlin编程语 [Android.mk与CMake编译](https://github.com/xufuji456/FFmpegAndroid/blob/master/doc/NDK_compile_shell.md) ### 相关介绍文章如下: -[NDK编译脚本](https://blog.csdn.net/u011686167/article/details/106458899) -[JNI开发规范](https://blog.csdn.net/u011686167/article/details/81784979) \ No newline at end of file +[NDK编译脚本](https://blog.csdn.net/u011686167/article/details/106458899)
+[JNI开发规范](https://blog.csdn.net/u011686167/article/details/81784979)
\ No newline at end of file