App name displayed when finish() Dialog Activity

2019-07-27 02:41发布

I want to secure my app with a fingerprint authentication dialog activity, it works, but if I choose to close the dialog here is what happens :

enter image description hereenter image description here

If I finish() the activity it flashes on the screen but it's still annoying. I am using android:theme="@style/Theme.AppCompat.Light.Dialog" theme.

Is there any way to prevent this from poping up ?

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-07-27 03:21

Actually I just figured out why. It's because I was using AppCompactActivity. Using a simple Activity fixed the problem.

查看更多
登录 后发表回答