Skip to content

Commit

Permalink
networks: smoother wifi access (fixes #1815) (#2082)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Jul 9, 2024
1 parent 498db65 commit d046600
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ open class NetworkFragment : BaseFragment(), View.OnClickListener, FragmentDialo
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) {
Toast.makeText(context, "Wifi scan requires at least android API 23", Toast.LENGTH_LONG).show()
} else {
val fragmentManager = bottomSheetDialogFragment.parentFragmentManager
val dialogFrag = WifiDialogFragment.newInstance()
dialogFrag.setTargetFragment(bottomSheetDialogFragment, Constants.REQUEST_DIALOG_WIFI)
dialogFrag.show(bottomSheetDialogFragment.requireActivity().supportFragmentManager.beginTransaction(), "wifiDialog")
dialogFrag.show(fragmentManager, "wifiDialog")
}
} // Next Version:
}
}
}

0 comments on commit d046600

Please sign in to comment.