Skip to content

Commit

Permalink
Allow new onInfoChanged on API 30 due to mainline
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Oct 24, 2024
1 parent 733d691 commit 4242aae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ object WifiApManager {
@Suppress("UNCHECKED_CAST")
callback.onConnectedClientsChanged(args!![0] as List<Parcelable>)
}
method.matches1<java.util.List<*>>("onInfoChanged") -> @TargetApi(31) {
if (Build.VERSION.SDK_INT < 31) Timber.w(Exception("Unexpected onInfoChanged API 31+"))
method.matches1<java.util.List<*>>("onInfoChanged") -> @TargetApi(30) {
if (Build.VERSION.SDK_INT < 30) Timber.w(Exception("Unexpected onInfoChanged"))
@Suppress("UNCHECKED_CAST")
callback.onInfoChanged(args!![0] as List<Parcelable>)
}
Expand Down

0 comments on commit 4242aae

Please sign in to comment.