INNER CODE UNIT · Kotlin

showProStatus

shmykelsa/AAAD · app/src/main/java/com/legs/appsforaa/AboutPaymentActivity.kt:129

    private fun showProStatus() {
        val upperTextView = findViewById<TextView>(R.id.upper_textview)
        val centralTextView = findViewById<TextView>(R.id.central_textview)
        val proButton = findViewById<View>(R.id.proButton)
        
        upperTextView.text = getString(R.string.congratsPro)
        centralTextView.text = getString(R.string.pro_benefit_unlimited)
        proButton.visibility = View.GONE
    }

    fun checkout(view: View) {
        val alertDialog = AlertDialog.Builder(this@AboutPaymentActivity).create()
        alertDialog.setMessage(getString(R.string.warning_payment))
        alertDialog.setTitle(getString(R.string.attention))

        alertDialog.setButton(
            AlertDialog.BUTTON_POSITIVE, getString(android.R.string.ok)
        ) { _, _ ->

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…