PatternLock icon indicating copy to clipboard operation
PatternLock copied to clipboard

Please add null check to left and right buttons

Open mobilekosmos opened this issue 7 years ago • 1 comments

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

in

ConfirmPatternActivity

mobilekosmos avatar Jul 12 '18 13:07 mobilekosmos

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 avatar Jul 13 '18 14:07 zhanghai