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

Please add null check to left and right buttons #27

Open
mobilekosmos opened this issue Jul 12, 2018 · 1 comment
Open

Please add null check to left and right buttons #27

mobilekosmos opened this issue Jul 12, 2018 · 1 comment
Assignees

Comments

@mobilekosmos
Copy link

mLeftButton.setText(R.string.pl_cancel);
mRightButton.setText(R.string.pl_forgot_pattern);

in

ConfirmPatternActivity

@zhanghai
Copy link
Owner

These stock activities assumes there are such buttons, and if you want to provide your own buttons or circumvent library's logic it won't be supported.

However if you still want to do this, you can accomplish it with some hack, e.g. adding the two buttons with the corresponding IDs to your layout and set their visibility to GONE.

Another way around would be copying the activity and picking the code you need. After all, these activities are just kind of a sample / some starter code.

@zhanghai zhanghai self-assigned this Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants