Updated on 2026-08-14
This commit is contained in:
parent
f7d5ff27e2
commit
8b150f0ef7
1 changed files with 6 additions and 8 deletions
|
|
@ -10,8 +10,6 @@ import android.widget.PopupMenu
|
|||
import android.widget.Toast
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.os.bundleOf
|
||||
import androidx.lifecycle.Observer
|
||||
import androidx.lifecycle.ViewModelProviders
|
||||
import com.tangem.App
|
||||
import com.tangem.Constant
|
||||
import com.tangem.data.Logger
|
||||
|
|
@ -84,12 +82,12 @@ class MainFragment : BaseFragment(), NavigationResultListener, NfcAdapter.Reader
|
|||
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)
|
||||
|
||||
// show snackbar about new version app
|
||||
viewModel.getVersionName().observe(this, Observer { text ->
|
||||
(activity as MainActivity).toastHelper.showSnackbarUpdateVersion(requireContext(), cl, text)
|
||||
})
|
||||
// viewModel = ViewModelProviders.of(this).get(MainViewModel::class.java)
|
||||
//
|
||||
// // show snackbar about new version app
|
||||
// viewModel.getVersionName().observe(this, Observer { text ->
|
||||
// (activity as MainActivity).toastHelper.showSnackbarUpdateVersion(requireContext(), cl, text)
|
||||
// })
|
||||
|
||||
val intent = activity?.intent
|
||||
if (intent != null && (NfcAdapter.ACTION_TECH_DISCOVERED == intent.action || NfcAdapter.ACTION_NDEF_DISCOVERED == intent.action)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue