Updated on 2026-08-14
This commit is contained in:
parent
840499c35a
commit
cee9c927ab
8 changed files with 26 additions and 123 deletions
|
|
@ -147,12 +147,6 @@ class MainActivity : AppCompatActivity(), NfcAdapter.ReaderCallback, CardProtoco
|
|||
// set listeners
|
||||
fab.setOnClickListener { showMenu(it) }
|
||||
|
||||
// if (BuildConfig.DEBUG) {
|
||||
// fab.setOnLongClickListener {
|
||||
// startActivity(Intent(this, SettingsDebugActivity::class.java))
|
||||
// false
|
||||
// }
|
||||
// }
|
||||
|
||||
val apiHelper = ServerApiHelper()
|
||||
apiHelper.setLastVersionListener { response ->
|
||||
|
|
@ -315,7 +309,7 @@ class MainActivity : AppCompatActivity(), NfcAdapter.ReaderCallback, CardProtoco
|
|||
val cardInfo = Bundle()
|
||||
cardInfo.putString("UID", cardProtocol.card.uid)
|
||||
val bCard = Bundle()
|
||||
cardProtocol.card.SaveToBundle(bCard)
|
||||
cardProtocol.card.saveToBundle(bCard)
|
||||
cardInfo.putBundle("Card", bCard)
|
||||
|
||||
val uid = cardInfo.getString("UID")
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
package com.tangem.presentation.activity
|
||||
|
||||
import android.os.Bundle
|
||||
import android.support.v7.app.AppCompatActivity
|
||||
import android.support.v7.widget.Toolbar
|
||||
|
||||
import com.tangem.wallet.R
|
||||
|
||||
class SettingsDebugActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_settings_debug)
|
||||
|
||||
initToolbar()
|
||||
}
|
||||
|
||||
private fun initToolbar() {
|
||||
val toolbar = findViewById<Toolbar>(R.id.toolbar)!!
|
||||
toolbar.title = getString(R.string.debug_settings)
|
||||
setSupportActionBar(toolbar)
|
||||
toolbar.setNavigationIcon(R.drawable.ic_arrow_left_white_24dp)
|
||||
toolbar.setNavigationOnClickListener {
|
||||
if (fragmentManager.backStackEntryCount == 0)
|
||||
finish()
|
||||
else
|
||||
fragmentManager.popBackStack()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue