Fix breaking API in WebNotificationFeature
This commit is contained in:
parent
ff5d00362b
commit
b7d989a588
|
@ -42,7 +42,6 @@ android {
|
|||
}
|
||||
|
||||
def releaseTemplate = {
|
||||
signingConfig signingConfigs.debug
|
||||
shrinkResources true
|
||||
minifyEnabled true
|
||||
proguardFiles 'proguard-android-optimize-3.5.0-modified.txt', 'proguard-rules.pro'
|
||||
|
|
|
@ -58,27 +58,24 @@ class FennecWebAppIntentProcessor(
|
|||
val url = safeIntent.dataString
|
||||
|
||||
return if (!url.isNullOrEmpty() && matches(intent)) {
|
||||
runBlocking {
|
||||
val webAppManifest = runBlocking { loadManifest(safeIntent, url) }
|
||||
|
||||
val webAppManifest = loadManifest(safeIntent, url)
|
||||
val session = Session(url, private = false, source = Source.HOME_SCREEN)
|
||||
session.webAppManifest = webAppManifest
|
||||
session.customTabConfig =
|
||||
webAppManifest?.toCustomTabConfig() ?: createFallbackCustomTabConfig()
|
||||
|
||||
val session = Session(url, private = false, source = Source.HOME_SCREEN)
|
||||
session.webAppManifest = webAppManifest
|
||||
session.customTabConfig =
|
||||
webAppManifest?.toCustomTabConfig() ?: createFallbackCustomTabConfig()
|
||||
sessionManager.add(session)
|
||||
loadUrlUseCase(url, session, EngineSession.LoadUrlFlags.external())
|
||||
|
||||
sessionManager.add(session)
|
||||
loadUrlUseCase(url, session, EngineSession.LoadUrlFlags.external())
|
||||
intent.putSessionId(session.id)
|
||||
|
||||
intent.putSessionId(session.id)
|
||||
|
||||
if (webAppManifest != null) {
|
||||
intent.flags = FLAG_ACTIVITY_NEW_DOCUMENT
|
||||
intent.putWebAppManifest(webAppManifest)
|
||||
}
|
||||
|
||||
true
|
||||
if (webAppManifest != null) {
|
||||
intent.flags = FLAG_ACTIVITY_NEW_DOCUMENT
|
||||
intent.putWebAppManifest(webAppManifest)
|
||||
}
|
||||
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user