mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45: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">
|
android:theme="@style/Theme.Unitto">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
android:allowTaskReparenting="true"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
@ -39,7 +39,9 @@ fun NavController.navigateToEpoch() {
|
|||||||
.setIntent(
|
.setIntent(
|
||||||
Intent(
|
Intent(
|
||||||
Intent.ACTION_VIEW,
|
Intent.ACTION_VIEW,
|
||||||
Uri.parse("app://com.sadellie.unitto/$epochRoute")
|
Uri.parse("app://com.sadellie.unitto/$epochRoute"),
|
||||||
|
context,
|
||||||
|
context.javaClass
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.build()
|
.build()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user