sendUserActionEvent() mView== null after clicking on button

后端 未结 2 1200
甜味超标
甜味超标 2020-12-01 12:28

I have checked with this link but there its mentioned about long clicks. but I am facing this after clicking on button of custom dialog. I have pasted my code over here. ca

相关标签:
2条回答
  • 2020-12-01 13:02

    In my case I was using al this intent flags together to intent the activity:

    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
    intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
    

    Just left the clear_top flag and it solved the problem:

    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    
    0 讨论(0)
  • 2020-12-01 13:03

    this is not a problem related to your code, but related to S4 android version. Same question has been posed on stackoverflow : sendUserActionEvent() is null

    So, just ignore it ;)

    0 讨论(0)
提交回复
热议问题