fix: Umbenennen greift nicht — Android lieferte den Intent nicht aus
Android vergleicht beim Activity-Start Komponente/Action/Daten, aber NICHT die Extras. Ein zweites Provisioning galt damit als 'derselbe Intent': die Activity wurde nur nach vorn geholt, onCreate/onNewIntent liefen nie — der alte Name blieb stehen (und kam nach dem Loeschen aus der Liste sofort wieder). - Satellit: eindeutige Daten-URI (aria://provision/<ms>) je Aufruf -> der Intent ist nie 'gleich'. Zusaetzlich wird die am-start-Ausgabe auf 'brought to the front'/'not started' geprueft und als Fehler gemeldet statt als Erfolg. - Android: MainActivity launchMode=singleTop -> erneutes Provisioning landet zuverlaessig in onNewIntent (statt neuer Instanz); setIntent() ergaenzt. Android-Version 0.0.1.2. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -214,7 +214,9 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
super.onNewIntent(intent)
|
||||
if (intent != null && applyProvisioning(intent)) return
|
||||
if (intent == null) return
|
||||
setIntent(intent)
|
||||
applyProvisioning(intent)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user