diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7ad671ffe..9d22c5b7d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -28,12 +28,19 @@ android:theme="@style/Theme.Tachiyomi"> + + + + @@ -44,8 +51,6 @@ - - diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/DeepLinkActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/DeepLinkActivity.kt new file mode 100644 index 000000000..ae37f883b --- /dev/null +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/DeepLinkActivity.kt @@ -0,0 +1,19 @@ +package eu.kanade.tachiyomi.ui.main + +import android.app.Activity +import android.content.Intent +import android.os.Bundle + +class DeepLinkActivity: Activity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + intent.apply { + flags = flags or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK + setClass(applicationContext, MainActivity::class.java) + } + startActivity(intent) + finish() + } +} \ No newline at end of file