Fix deprecations
This commit is contained in:
@@ -42,7 +42,7 @@ abstract class AlertDialogFragment<Arg : Parcelable, Ret : Parcelable> :
|
||||
|
||||
fun show(target: Fragment, requestCode: Int = 0, tag: String = javaClass.simpleName) {
|
||||
setTargetFragment(target, requestCode)
|
||||
show(target.fragmentManager ?: return, tag)
|
||||
show(target.parentFragmentManager, tag)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
||||
SmartSnackbar.make(e).show()
|
||||
return false
|
||||
}
|
||||
QRCodeDialog().withArg(qrString).show(fragmentManager ?: return false, "QRCodeDialog")
|
||||
QRCodeDialog().withArg(qrString).show(parentFragmentManager, "QRCodeDialog")
|
||||
true
|
||||
}
|
||||
else -> false
|
||||
|
||||
Reference in New Issue
Block a user