mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Always try to use default browser when opening custom tabs on all Android versions
This commit is contained in:
		| @@ -292,11 +292,8 @@ fun Context.openInBrowser(uri: Uri, @ColorInt toolbarColor: Int? = null) { | ||||
|                     .build() | ||||
|             ) | ||||
|             .build() | ||||
|         // Force allowing browser selection for Android 12+ so that verified extensions don't | ||||
|         // re-open Tachiyomi | ||||
|         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { | ||||
|             intent.intent.setPackage(defaultBrowserPackageName()) | ||||
|         } | ||||
|         // Force default browser so that verified extensions don't re-open Tachiyomi | ||||
|         intent.intent.setPackage(defaultBrowserPackageName()) | ||||
|         intent.launchUrl(this, uri) | ||||
|     } catch (e: Exception) { | ||||
|         toast(e.message) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user