Android SDK reader Payment Failed

The code is executed on tap of button.

Lets suppose i enetered the incorrect details , then app is stucked and kill the app and then goes to same screen and then onCheckoutResult method is called automatically without doing any operation and display the error message that “transacytion is already in progress”

There is no retry mechnism