mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	reroute all deep links through DeepLinkActivity to provide more control (#2546)
over launch behavior/intent flags
This commit is contained in:
		| @@ -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() | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user