Skip to content

Commit 5180ca8

Browse files
committed
Cleanup
1 parent 5211ca6 commit 5180ca8

File tree

4 files changed

+22
-30
lines changed

4 files changed

+22
-30
lines changed

app/src/main/cpp/filesystem.cpp

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include <jni.h>
2+
#include "YoutubeListDownloader/utils/fs.h"
3+
4+
#ifndef PLATFORM_ANDROID_FILESYSTEM_SETTINGS_CPP
5+
#define PLATFORM_ANDROID_FILESYSTEM_SETTINGS_CPP
6+
7+
extern "C" {
8+
9+
// setDbPath
10+
JNIEXPORT void JNICALL
11+
Java_de_linux13524_ytldl_jniwrapper_filesystem_Settings_setDbPath
12+
(JNIEnv *env, jobject thiz, jstring path_) {
13+
14+
const char *path = env->GetStringUTFChars(path_, nullptr);
15+
16+
Filesystem::Settings::Instance().SetDbPath(path);
17+
}
18+
19+
}
20+
#endif
21+

app/src/main/java/de/linux13524/ytldl/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class MainActivity : FragmentActivity() {
4444
private fun updateLog(newMessage: String) {
4545
runOnUiThread {
4646
tv_log.text = "${tv_log.text}\n$newMessage"
47-
lyt_scroll.post({ lyt_scroll.fullScroll(ScrollView.FOCUS_DOWN) })
47+
lyt_scroll.post { lyt_scroll.fullScroll(ScrollView.FOCUS_DOWN) }
4848
}
4949
}
5050

app/src/main/java/de/linux13524/ytldl/fragments/AddListFragment.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class AddListFragment : Fragment() {
2424
private var currentPlaylist: Playlist? = null
2525
private var currentChannel: Channel? = null
2626

27-
private val sdCardDir = "${Environment.getExternalStorageDirectory()}/YT-DL"
28-
2927
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
3028
super.onViewCreated(view, savedInstanceState)
3129

0 commit comments

Comments
 (0)