mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-05 13:09:48 +01:00
parent
213be5fa25
commit
240d8b1d39
@ -14,6 +14,7 @@ import org.mariotaku.twidere.model.UserKey
|
||||
import org.mariotaku.twidere.util.Analyzer
|
||||
import org.mariotaku.twidere.util.IntentUtils
|
||||
import org.mariotaku.twidere.util.Utils
|
||||
import java.util.*
|
||||
|
||||
class WebLinkHandlerActivity : Activity() {
|
||||
|
||||
@ -27,7 +28,7 @@ class WebLinkHandlerActivity : Activity() {
|
||||
return
|
||||
}
|
||||
|
||||
val (handledIntent, handledSuccessfully) = when (uri.host) {
|
||||
val (handledIntent, handledSuccessfully) = when (uri.host.toLowerCase(Locale.US)) {
|
||||
"twitter.com", "www.twitter.com", "mobile.twitter.com" -> handleTwitterLink(regulateTwitterUri(uri))
|
||||
"fanfou.com" -> handleFanfouLink(uri)
|
||||
"twidere.org", "twidere.mariotaku.org" -> handleTwidereExternalLink(uri)
|
||||
|
@ -152,6 +152,7 @@ open class OnLinkClickHandler(
|
||||
return
|
||||
}
|
||||
val builder = CustomTabsIntent.Builder()
|
||||
builder.addDefaultShareMenuItem()
|
||||
(ChameleonUtils.getActivity(context) as? Chameleon.Themeable)?.overrideTheme?.let { theme ->
|
||||
builder.setToolbarColor(theme.colorToolbar)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user