Removed toast showing the code retrieved from the qrcode

This commit is contained in:
Mariano Riefolo 2024-04-14 12:22:09 +02:00
parent 4914bc3666
commit cf9e8b483c

View File

@ -2,7 +2,6 @@ package it.edu.cassandroferminervi.flowschool.util
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context import android.content.Context
import android.content.Intent
import android.widget.Toast import android.widget.Toast
import androidx.camera.core.ImageAnalysis import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy import androidx.camera.core.ImageProxy
@ -37,7 +36,6 @@ class QrAnalyzer(private val context: Context, val navigator: DestinationsNaviga
?.mapNotNull { it.rawValue } ?.mapNotNull { it.rawValue }
?.joinToString(",") ?.joinToString(",")
?.let { ?.let {
Toast.makeText(context, it, Toast.LENGTH_SHORT).show()
CoroutineScope(Dispatchers.Main).launch { CoroutineScope(Dispatchers.Main).launch {
val response = RetrofitInstance.api.postPresence(token, it) val response = RetrofitInstance.api.postPresence(token, it)
val resBody = response.body() val resBody = response.body()