Skip to content

Commit

Permalink
addOnlyKey() IOException unnecessarily caught by permissionsCheck().
Browse files Browse the repository at this point in the history
  • Loading branch information
zbrowning committed Apr 23, 2018
1 parent d891970 commit 8a7d7ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/src/main/java/to/crp/android/onlykeyu2f/OKService.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,10 @@ private void toast(final String msg, final boolean isShort) {
.show());
}

private void permissionsCheck() {
private void permissionsCheck() throws IOException {
if (manager.hasPermission(d)) {
Log.d(TAG, "Have permission.");
try {
addOnlyKey();
} catch (IOException ioe) {
handleError(ioe);
}
addOnlyKey();
} else {
Log.d(TAG, "Requesting permission.");
final PendingIntent mPermissionIntent = PendingIntent
Expand Down

0 comments on commit 8a7d7ec

Please sign in to comment.