mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
Fix deep link and shortcuts.
User can now open app from shortcut even if it was already started.
This commit is contained in:
parent
7f664c21fd
commit
f5e37aec16
@ -12,6 +12,7 @@
|
||||
android:theme="@style/Theme.Unitto">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:allowTaskReparenting="true"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -39,7 +39,9 @@ fun NavController.navigateToEpoch() {
|
||||
.setIntent(
|
||||
Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse("app://com.sadellie.unitto/$epochRoute")
|
||||
Uri.parse("app://com.sadellie.unitto/$epochRoute"),
|
||||
context,
|
||||
context.javaClass
|
||||
)
|
||||
)
|
||||
.build()
|
||||
|
Loading…
x
Reference in New Issue
Block a user