Updated on 2026-08-14
This commit is contained in:
parent
80b3aba688
commit
a38a751d2c
9 changed files with 121 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
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()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.tangem.presentation.fragment
|
||||
|
||||
import android.os.Bundle
|
||||
import android.preference.PreferenceFragment
|
||||
import android.preference.SwitchPreference
|
||||
import com.tangem.wallet.R
|
||||
|
||||
class SettingsDebug : PreferenceFragment() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
addPreferencesFromResource(R.xml.fr_settings_debug)
|
||||
|
||||
val debug_new_request_verify = findPreference(getString(R.string.key_debug_new_request_verify)) as SwitchPreference
|
||||
val debug_new_request_verify_show_json = findPreference(getString(R.string.key_debug_new_request_verify_show_json)) as SwitchPreference
|
||||
|
||||
debug_new_request_verify.title = "Новый запрос verify card"
|
||||
debug_new_request_verify_show_json.title = "Показать ответ"
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue