waiting for ios review

This commit is contained in:
sagiferi
2026-10-25 07:11:03 +01:00
parent b33d1543fc
commit b84eef0b53
42 changed files with 1687 additions and 155 deletions
@@ -1,7 +1,9 @@
package com.example.sfzenith
import android.content.ContentValues
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import android.webkit.MimeTypeMap
@@ -11,6 +13,16 @@ import io.flutter.plugin.common.MethodChannel
import java.io.File
class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Opened first from the installer (or adb), Android starts a second copy of
// the app from the launcher icon. Close it so the running one comes back.
val i = intent
if (!isTaskRoot && i != null && i.action == Intent.ACTION_MAIN && i.hasCategory(Intent.CATEGORY_LAUNCHER)) {
finish()
}
}
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "sfzenith/files")