Aperture: Override LocationListener methods w/o defaults for pre-R API
Change-Id: I1709906a3d537749fe827b69aea39e5d3e17fc97
diff --git a/app/src/main/java/org/lineageos/aperture/CameraActivity.kt b/app/src/main/java/org/lineageos/aperture/CameraActivity.kt
index e84322a..5e1b95e 100644
--- a/app/src/main/java/org/lineageos/aperture/CameraActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/CameraActivity.kt
@@ -265,6 +265,21 @@
} ?: location
}
+ @Suppress("OVERRIDE_DEPRECATION")
+ override fun onStatusChanged(provider: String?, status: Int, extras: Bundle?) {
+ // Required for Build.VERSION.SDK_INT < Build.VERSION_CODES.R
+ }
+
+ @Suppress("OVERRIDE_DEPRECATION")
+ override fun onProviderEnabled(provider: String) {
+ // Required for Build.VERSION.SDK_INT < Build.VERSION_CODES.R
+ }
+
+ @Suppress("OVERRIDE_DEPRECATION")
+ override fun onProviderDisabled(provider: String) {
+ // Required for Build.VERSION.SDK_INT < Build.VERSION_CODES.R
+ }
+
@SuppressLint("MissingPermission")
fun register() {
// Reset cached location