Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog will dismiss after rotating screen (Api23Impl) #1

Open
fython opened this issue Jun 7, 2018 · 0 comments
Open

Dialog will dismiss after rotating screen (Api23Impl) #1

fython opened this issue Jun 7, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@fython
Copy link
Owner

fython commented Jun 7, 2018

Dialog cannot keep its state after rotating screen. Most of time, we use DialogFragment to solve this problem. But it will break original-like API style (Need developers to add Fragment to FragmentManager by themselves.).

I have implemented a simple version of DialogFragment for BiometricPromptApi23Impl which is still undocumented: AbstractBiometricPromptDialogFragment. I think I should make it easier to use before releasing it.

If you have any idea, welcome to comment here.


中文:

Dialog 不能在旋转屏幕后保持它的状态。大多时候我们会使用 DialogFragment 来解决这个问题,但它会破坏类原生接口的风格(需要开发者自行将 Fragment 加入 FragmentManager)。

我已经为 BiometricPromptApi23Impl 实现了一个未记入文档的简单版本 Fragment ——AbstractBiometricPromptDialogFragment。我想我应该让它更易于使用再发布。

如果你有任何点子,欢迎在此发表评论。

@fython fython added bug Something isn't working enhancement New feature or request labels Jun 7, 2018
@fython fython self-assigned this Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant