当前位置:网站首页>After kotlin wechat payment callback, the interface is stuck and uipagefragmentactivity windowleft is thrown

After kotlin wechat payment callback, the interface is stuck and uipagefragmentactivity windowleft is thrown

2022-06-27 20:43:00 qq_ forty-one million six hundred and twenty thousand two hundr

After waking up wechat payment and canceling the payment , Interface suddenly stuck , The callback of payment failure will not go , A strange appearance threw an exception , I can't find out why .

Removing Window{6b3ce09 u0 com.tencent.mm/com.tencent.kinda.framework.app.UIPageFragmentActivity} from AppWindowToken{6b0fd67 token=Token{6c59571 ActivityRecord{71251c9 u0 com.tencent.mm/com.tencent.kinda.framework.app.UIPageFragmentActivity t11969}}}

Finally found out because Kotlin The code wasn't written by yourself , It's direct java Transferred kotlin There is no non null processing for parameters , as follows :

override fun onSuccess(s: String) {
  
}

override fun onFail(p0: String, p1: String) {
    
}
 The correct operation is as follows :
override fun onSuccess(s: String?) {
  
}

override fun onFail(p0: String?, p1: String?) {
   
}

原网站

版权声明
本文为[qq_ forty-one million six hundred and twenty thousand two hundr]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206271756400812.html