Text styling, download fix, small bugs

This commit is contained in:
exttex 2020-07-19 14:41:05 +02:00
parent 109fc6f54b
commit 6f250df004
8 changed files with 110 additions and 48 deletions

View file

@ -1,5 +1,7 @@
package f.f.freezer;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import androidx.annotation.NonNull;
@ -47,6 +49,13 @@ public class MainActivity extends FlutterActivity {
decryptTrack(path, tid);
result.success(0);
}
//Android media scanner
if (call.method.equals("rescanLibrary")) {
String path = call.argument("path");
Uri uri = Uri.fromFile(new File(path));
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
result.success(0);
}
//Add tags to track
if (call.method.equals("tagTrack")) {
try {