Skip to content

Commit

Permalink
combine if statement
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
  • Loading branch information
tobiasKaminsky committed May 14, 2019
1 parent 9650a14 commit d372a21
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,11 @@ public void onClick(DialogInterface dialog, int which) {
} else {
setPassword(share, null);
}
} else if (which == AlertDialog.BUTTON_NEGATIVE) {
if (askForPassword) {
if (share == null) {
setPassword(createShare, file, null);
} else {
setPassword(share, null);
}
} else if (which == AlertDialog.BUTTON_NEGATIVE && askForPassword) {
if (share == null) {
setPassword(createShare, file, null);
} else {
setPassword(share, null);
}
}
}
Expand Down

0 comments on commit d372a21

Please sign in to comment.