Skip to content

Commit

Permalink
fix(QR url): make HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCura committed May 5, 2021
1 parent fd82d20 commit 51feac2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ class InventoryFragment : Fragment() {
}

private fun getQR(url: String) {
val url2 = url.replace("http://", "https://")
val queue = Volley.newRequestQueue(activity)

LoadingIndicatorFragment.show(requireContext())
val jsonObjectRequest = object: JsonObjectRequest(Request.Method.GET, url, null,
val jsonObjectRequest = object: JsonObjectRequest(Request.Method.GET, url2, null,
Response.Listener { response ->
Log.i("API", "Response: %s".format(response.toString()))

Expand Down

0 comments on commit 51feac2

Please sign in to comment.