Skip to content

Commit 1413681

Browse files
committed
fix: Fixed that setup with no arguments tried to setup with a file instead of string
this.setup(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), true); Returns a file instead of a string. Changed to: this.setup("" + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), true);
1 parent 474d0fe commit 1413681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/torrent/src/main/java/com/ghondar/torrentstreamer/TorrentStreamer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void setup(String location) {
6868

6969
private void setup() {
7070
if (mTorrentStream == null) {
71-
this.setup(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), true);
71+
this.setup("" + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), true);
7272
}
7373
}
7474

0 commit comments

Comments
 (0)