A few more Java 8 changes in merged code.

This commit is contained in:
akwizgran
2017-11-21 16:21:15 +00:00
parent 3ec8af4661
commit ece2c51358
6 changed files with 12 additions and 36 deletions

View File

@@ -40,12 +40,7 @@ public class DozeFragment extends SetupFragment {
dozeButton = (Button) v.findViewById(R.id.dozeButton);
progressBar = (ProgressBar) v.findViewById(R.id.progress);
dozeButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
askForDozeWhitelisting();
}
});
dozeButton.setOnClickListener(view -> askForDozeWhitelisting());
return v;
}

View File

@@ -25,6 +25,6 @@ public interface SetupController {
void createAccount();
void createAccount(final ResultHandler<Void> resultHandler);
void createAccount(ResultHandler<Void> resultHandler);
}

View File

@@ -70,7 +70,7 @@ public class SetupControllerImpl extends PasswordControllerImpl
@Override
public void createAccount() {
final UiResultHandler<Void> resultHandler =
UiResultHandler<Void> resultHandler =
new UiResultHandler<Void>(setupActivity) {
@Override
public void onResultUi(Void result) {
@@ -83,7 +83,7 @@ public class SetupControllerImpl extends PasswordControllerImpl
}
@Override
public void createAccount(final ResultHandler<Void> resultHandler) {
public void createAccount(ResultHandler<Void> resultHandler) {
if (authorName == null || password == null)
throw new IllegalStateException();
cryptoExecutor.execute(() -> {

View File

@@ -230,8 +230,8 @@ class GroupControllerImpl extends
}
@Override
public void isDissolved(final
ResultExceptionHandler<Boolean, DbException> handler) {
public void isDissolved(
ResultExceptionHandler<Boolean, DbException> handler) {
runOnDbThread(() -> {
try {
boolean isDissolved =