remove unused method

pull/209/head
xufuji456 3 years ago
parent afda7391a8
commit 3e9c15e364
  1. 3
      app/src/main/java/com/frank/ffmpeg/activity/FilterActivity.kt
  2. 10
      app/src/main/java/com/frank/ffmpeg/util/FileUtil.kt
  3. 2
      app/src/main/res/values-en/strings.xml
  4. 2
      app/src/main/res/values/strings.xml
  5. 4
      doc/JNI_develop_practice.md

@ -13,7 +13,6 @@ import android.view.SurfaceHolder
import android.view.SurfaceView import android.view.SurfaceView
import android.view.View import android.view.View
import android.widget.Button import android.widget.Button
import android.widget.Toast
import android.widget.ToggleButton import android.widget.ToggleButton
import com.frank.ffmpeg.FFmpegApplication import com.frank.ffmpeg.FFmpegApplication
@ -159,7 +158,7 @@ class FilterActivity : BaseActivity(), SurfaceHolder.Callback {
doFilterPlay(4) doFilterPlay(4)
btnSound!!.isChecked = true btnSound!!.isChecked = true
} else { } else {
Toast.makeText(this@FilterActivity, getString(R.string.file_not_found), Toast.LENGTH_SHORT).show() showSelectFile()
} }
} }

@ -209,16 +209,6 @@ object FileUtil {
return null 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 { fun deleteFile(path: String): Boolean {
if (TextUtils.isEmpty(path)) { if (TextUtils.isEmpty(path)) {
return false return false

@ -90,7 +90,7 @@
<string name="video_sharp">sharp</string> <string name="video_sharp">sharp</string>
<string name="select_file">Select file</string> <string name="select_file">Select file</string>
<string name="please_select">Please select a correct file</string> <string name="please_select">Please select or set a correct file</string>
<string name="file_not_found">File not found</string> <string name="file_not_found">File not found</string>
<string name="please_click_select">Please click the right-top button to select file</string> <string name="please_click_select">Please click the right-top button to select file</string>
<string name="wrong_audio_format">wrong audio file</string> <string name="wrong_audio_format">wrong audio file</string>

@ -90,7 +90,7 @@
<string name="video_sharp">锐化</string> <string name="video_sharp">锐化</string>
<string name="select_file">选择文件</string> <string name="select_file">选择文件</string>
<string name="please_select">请选择正确文件</string> <string name="please_select">请选择或设置正确文件</string>
<string name="file_not_found">文件不存在</string> <string name="file_not_found">文件不存在</string>
<string name="please_click_select">请点击右上角菜单选择文件</string> <string name="please_click_select">请点击右上角菜单选择文件</string>
<string name="wrong_audio_format">非音频文件</string> <string name="wrong_audio_format">非音频文件</string>

@ -6,5 +6,5 @@ JNI是Java本地接口,定义Android从应用代码(以Java或kotlin编程语
[Android.mk与CMake编译](https://github.com/xufuji456/FFmpegAndroid/blob/master/doc/NDK_compile_shell.md) [Android.mk与CMake编译](https://github.com/xufuji456/FFmpegAndroid/blob/master/doc/NDK_compile_shell.md)
### 相关介绍文章如下: ### 相关介绍文章如下:
[NDK编译脚本](https://blog.csdn.net/u011686167/article/details/106458899) [NDK编译脚本](https://blog.csdn.net/u011686167/article/details/106458899)</br>
[JNI开发规范](https://blog.csdn.net/u011686167/article/details/81784979) [JNI开发规范](https://blog.csdn.net/u011686167/article/details/81784979)</br>
Loading…
Cancel
Save