File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
app/src/main/java/com/samourai/sentinel Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -210,11 +210,19 @@ public boolean onLongClick(View view) {
210
210
}
211
211
212
212
public void OnNumberPadClick (View view ) {
213
- if (PrefsUtil .getInstance (PinEntryActivity .this ).getValue (PrefsUtil .HAPTIC_PIN , false ) == true ) {
214
- vibrator .vibrate (55 );
213
+ if (userInput .length () <= (AccessFactory .MAX_PIN_LENGTH - 1 )){
214
+ userInput .append (((Button ) view ).getText ().toString ());
215
+ if (PrefsUtil .getInstance (PinEntryActivity .this ).getValue (PrefsUtil .HAPTIC_PIN , false )) {
216
+ vibrator .vibrate (55 );
217
+ }
218
+ if (userInput .length () >= AccessFactory .MIN_PIN_LENGTH ) {
219
+ tsend .setVisibility (View .VISIBLE );
220
+ } else {
221
+ tsend .setVisibility (View .GONE );
222
+ }
223
+ displayUserInput ();
215
224
}
216
- userInput .append (((Button ) view ).getText ().toString ());
217
- displayUserInput ();
225
+
218
226
}
219
227
220
228
private void displayUserInput () {
You can’t perform that action at this time.
0 commit comments