Commit 0250baee authored by Ricki Hirner's avatar Ricki Hirner

Lint cleanup for Android P

parent 05d19707
Pipeline #32106487 passed with stages
in 8 minutes and 55 seconds
......@@ -22,7 +22,6 @@ import android.support.v4.view.GravityCompat
import android.support.v7.app.ActionBarDrawerToggle
import android.support.v7.app.AppCompatActivity
import android.view.MenuItem
import android.view.View
import at.bitfire.davdroid.App
import at.bitfire.davdroid.R
import at.bitfire.davdroid.settings.ISettings
......
......@@ -7,7 +7,10 @@
*/
package at.bitfire.davdroid.ui.setup
import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.os.Build
import android.os.Parcel
import android.os.Parcelable
import at.bitfire.dav4android.DavResource
......@@ -443,7 +446,8 @@ class DavResourceFinder(
override fun describeContents() = 0
override fun writeToParcel(dest: Parcel, flags: Int) {
@SuppressLint("NewApi")
override fun writeToParcel(dest: Parcel, flags: Int) { @TargetApi(Build.VERSION_CODES.N)
fun writeServiceInfo(info: ServiceInfo?) {
if (info == null)
dest.writeByte(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment