Skip to content

Commit

Permalink
fixed: support 22 version cannot build
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriel committed Nov 10, 2016
1 parent fc1db34 commit d866a76
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.exyui.android.debugbottle.components.fragments

import android.app.Activity
import android.app.AlertDialog
import android.app.Dialog
import android.content.Context
Expand Down Expand Up @@ -91,7 +92,9 @@ class __TestSettingsFragment: __ContentFragment() {
return builder.create()
}

override fun onAttach(context: Context?) {
@Suppress("OverridingDeprecatedMember")
override fun onAttach(context: Activity?) {
@Suppress("DEPRECATION")
super.onAttach(context)
context?.let { activityContext = it }
}
Expand Down

0 comments on commit d866a76

Please sign in to comment.