INNER CODE UNIT · Kotlin
onCancelled
shmykelsa/AAAD · app/src/main/java/com/legs/appsforaa/AboutPaymentActivity.kt:122
override fun onCancelled(error: DatabaseError) {
Toast.makeText(this@AboutPaymentActivity,
getString(R.string.connection_error), Toast.LENGTH_SHORT).show()
}
})
}
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) {