The exact use case: Suppose I choose UPI option, I entered UPI and it got verified, now I've a PayU activity (not dialog), and in that written: "Please switch to your app..bla bla" now I haven't switched, instead I pressed back button, so pay alert dialog asked, whether I want to cancel transaction or not. I said yes, and I came back to my main activity from where I started this flow. So while cancel transaction and coming back at that time this is happening.
The exact use case: Suppose I choose UPI option, I entered UPI and it got verified, now I've a PayU activity (not dialog), and in that written: "Please switch to your app..bla bla" now I haven't switched, instead I pressed back button, so pay alert dialog asked, whether I want to cancel transaction or not. I said yes, and I came back to my main activity from where I started this flow. So while cancel transaction and coming back at that time this is happening.