Skip to content

Commit d453dd4

Browse files
committed
Suppress warnings in overridden method as nothing else would work
1 parent 80b33e8 commit d453dd4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/WebViewWidgetMessageInterceptor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class WebViewWidgetMessageInterceptor(
133133
return assetLoader.shouldInterceptRequest(request.url)
134134
}
135135

136+
@Suppress("OVERRIDE_DEPRECATION")
136137
override fun shouldInterceptRequest(view: WebView?, url: String): WebResourceResponse? {
137138
return assetLoader.shouldInterceptRequest(url.toUri())
138139
}

libraries/maplibre-compose/src/main/kotlin/io/element/android/libraries/maplibre/compose/MapLibreMap.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
package io.element.android.libraries.maplibre.compose
1010

11-
import android.content.ComponentCallbacks
1211
import android.content.ComponentCallbacks2
1312
import android.content.Context
1413
import android.content.res.Configuration
@@ -240,8 +239,7 @@ private fun MapView.componentCallbacks(): ComponentCallbacks2 =
240239
object : ComponentCallbacks2 {
241240
override fun onConfigurationChanged(config: Configuration) = Unit
242241

243-
// We need to override this method, even if it's deprecated
244-
@Suppress("DEPRECATION")
242+
@Suppress("OVERRIDE_DEPRECATION")
245243
override fun onLowMemory() = Unit
246244

247245
override fun onTrimMemory(level: Int) {

0 commit comments

Comments
 (0)