One-tap song transfer from Mikro Seq without the replace dialog, with a backup (0.36.0)
Skipped only for ACTION_VIEW + extra.REPLACE + a content URI whose provider belongs to cc.tiredsysadmin.android.mikroseq. The replaced song is saved as "Before Mikro Seq import" first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1eafe20410
commit
3170e8dd7a
@@ -473,6 +473,20 @@ than songs. The ViewModel then holds an `incomingSong`, and `App.kt` asks before
|
||||
stay); the intent is consumed so a rotation can't offer it twice. Mikro Seq's "Open
|
||||
in Sizzle" sends its exported `.sng` this way with a FileProvider URI.
|
||||
|
||||
**One-tap transfer from Mikro Seq (0.36.0).** Mikro Seq's "Current to Sizzle"
|
||||
button sends the same `ACTION_VIEW` plus the boolean extra
|
||||
`cc.tiredsysadmin.android.sizzle.extra.REPLACE`. `SongIntents.isTrustedReplace`
|
||||
skips the dialog only when the action is `ACTION_VIEW`, the extra is true, the URI
|
||||
is `content:`, and `PackageManager.resolveContentProvider(authority)` belongs to
|
||||
`cc.tiredsysadmin.android.mikroseq`. Mikro Seq's provider isn't exported, so only
|
||||
Mikro Seq can grant us such a URI; any other sender, extra or not, gets the
|
||||
dialog. The lookup needs Mikro Seq in the manifest's `<queries>` (package
|
||||
visibility, Android 11+). Because nothing asks first, `replaceFromMikroSeq` saves
|
||||
the current song in full to the library as "Before Mikro Seq import" (one rolling
|
||||
backup, overwritten on every transfer), then imports and shows a toast. Checked on
|
||||
the emulator: the Mikro Seq button replaces without a dialog; the same intent from
|
||||
Sizzle's own FileProvider still asks.
|
||||
|
||||
### 5.7 The Morph Pad (FRASIL port, MPL-2.0)
|
||||
|
||||
The **Morph Pad** instrument (`ToolboxType.MORPH_PAD`) is the drone voice of
|
||||
|
||||
Reference in New Issue
Block a user