Skip to content

Commit

Permalink
feat(#661): fix task behavior for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 14, 2024
1 parent b9de79b commit 8b869fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
Expand Down Expand Up @@ -44,9 +44,9 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Agreed to use app ID but must not contain underscores -->
<data android:scheme="pharme" />
<data android:scheme="healthx" />
<!-- Host we agreed upon -->
<data android:host="open_file" />
<data android:host="pharme" />
</intent-filter>
<!-- END receive deep links config -->
</activity>
Expand Down
2 changes: 2 additions & 0 deletions app/lib/common/routing/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ class AppRouter extends _$AppRouter {
),
onboardingRoute(),
secureRoute(),
// See https://github.com/Milad-Akarie/auto_route_library/issues/1722#issuecomment-2344394468
RedirectRoute(path: '*', redirectTo: '/main'),
];
}

0 comments on commit 8b869fe

Please sign in to comment.