Skip to content

Commit

Permalink
fix parameter type in recreateKey() method
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorvs committed Sep 16, 2016
1 parent 66f5e5b commit 3035c81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ public void stop() {
}

@Override
public void recreateKey(final Object listener) {
if (listener instanceof FingerLockResultCallback) {
impl.recreateKey((FingerLockResultCallback) listener);
public void recreateKey(@NonNull final FingerLockResultCallback listener) {
//noinspection ConstantConditions
if (listener != null) {
impl.recreateKey(listener);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ public interface FingerLockManager {
*/
void stop();

void recreateKey(final Object listener);
/**
* Call this method to re-create the keys so that new (added) fingerprints are validated.
*
* @param listener instance that implements {@linkplain FingerLockResultCallback} interface
*/
void recreateKey(final FingerLockResultCallback listener);
}

0 comments on commit 3035c81

Please sign in to comment.