removed Unwanted code

This commit is contained in:
Mariya
2023-11-22 17:10:06 +05:30
parent 3d39c43c22
commit 90590ee535
2 changed files with 1 additions and 22 deletions

View File

@@ -22,28 +22,6 @@ import `in`.sminnovations.hpostesting.databinding.ActivityHemocubeBinding
class DigitalCardActivity : AppCompatActivity() {
private lateinit var binding: ActivityDigitalCardBinding
private val viewModel by viewModels<HemoCubeViewModel>()
private var myMenu: Menu? = null
private lateinit var mDriver: UsbSerialDriver
private var mConnection: UsbDeviceConnection? = null
lateinit var mService: UsbService
private val TAG = "HemoCube"
// private val connection = object : ServiceConnection {
// override fun onServiceConnected(className: ComponentName, service: IBinder) {
// val binder = service as UsbService.UsbServiceBinder
// mService = binder.getService()
// viewModel.isServiceConnected = true
// mConnection.let { mService.connect(mDriver, mConnection!!) }
// moveToNext()
// }
//
// override fun onServiceDisconnected(arg0: ComponentName) {
// viewModel.isServiceConnected = false
// }
// }
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

View File

@@ -128,6 +128,7 @@ class HemoCubeFragment : Fragment() {
hemoCubeViewModel.fireBaseUpload.observe(viewLifecycleOwner) { result ->
if (result == "Success") {
showToast("Test Results Uploaded Successfully")
activity?.runOnUiThread {
binding.btnSubmit.visibility = View.GONE
binding.btnDigitalCard.visibility = View.VISIBLE