removed Unwanted code
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user