More cleanup now that min API is back to 23.
This commit is contained in:
parent
5605ddca9b
commit
0a689d5456
2 changed files with 0 additions and 6 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package io.element.android.features.login.impl.oidc.webview
|
package io.element.android.features.login.impl.oidc.webview
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
|
||||||
import android.annotation.TargetApi
|
import android.annotation.TargetApi
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.webkit.WebResourceRequest
|
import android.webkit.WebResourceRequest
|
||||||
|
|
@ -26,8 +25,6 @@ import android.webkit.WebViewClient
|
||||||
class OidcWebViewClient(
|
class OidcWebViewClient(
|
||||||
private val eventListener: WebViewEventListener,
|
private val eventListener: WebViewEventListener,
|
||||||
) : WebViewClient() {
|
) : WebViewClient() {
|
||||||
// We will revert to API 23, in the mean time ignore the warning here.
|
|
||||||
@SuppressLint("ObsoleteSdkInt")
|
|
||||||
@TargetApi(Build.VERSION_CODES.N)
|
@TargetApi(Build.VERSION_CODES.N)
|
||||||
override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean {
|
override fun shouldOverrideUrlLoading(view: WebView, request: WebResourceRequest): Boolean {
|
||||||
return shouldOverrideUrl(request.url.toString())
|
return shouldOverrideUrl(request.url.toString())
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package io.element.android.libraries.push.impl.notifications.factories.action
|
package io.element.android.libraries.push.impl.notifications.factories.action
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
|
||||||
import android.app.PendingIntent
|
import android.app.PendingIntent
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
|
@ -71,8 +70,6 @@ class QuickReplyActionFactory @Inject constructor(
|
||||||
* However, for Android devices running Marshmallow and below (API level 23 and below),
|
* However, for Android devices running Marshmallow and below (API level 23 and below),
|
||||||
* it will be more appropriate to use an activity. Since you have to provide your own UI.
|
* it will be more appropriate to use an activity. Since you have to provide your own UI.
|
||||||
*/
|
*/
|
||||||
//TODO remove when minSdk will be back to 23
|
|
||||||
@SuppressLint("ObsoleteSdkInt")
|
|
||||||
private fun buildQuickReplyIntent(
|
private fun buildQuickReplyIntent(
|
||||||
sessionId: SessionId,
|
sessionId: SessionId,
|
||||||
roomId: RoomId,
|
roomId: RoomId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue