payu-intrepos / PayUCheckoutPro-Android

PayUCheckoutPro SDK for Android
9 stars 9 forks source link

Bank Webpage : Alert dialog button not visible ( on updating material design to 1.3.0) #9

Closed arpitagarwal1301 closed 3 years ago

arpitagarwal1301 commented 3 years ago

Issue :

  1. Selecting netbanking or credit card
  2. Webiview will open
  3. Click on back button -> Alert dialog will be visible but Cancel , Ok button are not visible .

Happening after update library

dialog_issue

arpitagarwal1301 commented 3 years ago

Found a work around : You can set different theme using builder context .

        override fun onBackButton(alertDialogBuilder: AlertDialog.Builder?) {
            alertDialogBuilder?.context?.setTheme(R.style.Theme_Custom_AlertDialog)
            super.onBackButton(alertDialogBuilder)
        }