diff options
| author | Claude <noreply@anthropic.com> | 2026-05-15 20:11:41 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-15 21:25:53 +0000 |
| commit | 555483b7248b0cb75bb9ed83b47880349f0c6ee0 (patch) | |
| tree | 8cfcd3355f765dc046f6fe48b076df6c79a21a1f /android-app/app/src/main/AndroidManifest.xml | |
| parent | bf4658ea210ad941772cd2d9626b66588dde35dc (diff) | |
fix: saved tracks overlay, GPX file handler, nav import
Saved tracks overlay was immediately hidden after showing because
bottomNav.selectedItemId = nav_map fires the nav item listener, which
calls hideOverlays(). Removed that line — the map tab is already
selected when the instrument sheet is open.
GPX file handler:
- Manifest: intent-filter for application/gpx+xml + singleTop launch
mode so onNewIntent is called when app is already running
- MainActivity: handleIncomingGpx() called from onCreate + onNewIntent;
parses the URI on IO dispatcher and hands points to ViewModel
- MainViewModel: addImportedTrack() prepends parsed points to pastTracks
and savedTracks state flows (displayed in session only, not persisted)
https://claude.ai/code/session_01DNjbYxiC1cco83dArNGW3G
Diffstat (limited to 'android-app/app/src/main/AndroidManifest.xml')
| -rw-r--r-- | android-app/app/src/main/AndroidManifest.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android-app/app/src/main/AndroidManifest.xml b/android-app/app/src/main/AndroidManifest.xml index 7cbafc7..7b9a9e4 100644 --- a/android-app/app/src/main/AndroidManifest.xml +++ b/android-app/app/src/main/AndroidManifest.xml @@ -27,12 +27,18 @@ <activity android:name=".MainActivity" android:exported="true" + android:launchMode="singleTop" android:screenOrientation="portrait" android:configChanges="orientation|screenSize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:mimeType="application/gpx+xml" /> + </intent-filter> </activity> </application> </manifest> |
