mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
A few more Java 8 changes in merged code.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ public interface SetupController {
|
||||
|
||||
void createAccount();
|
||||
|
||||
void createAccount(final ResultHandler<Void> resultHandler);
|
||||
void createAccount(ResultHandler<Void> resultHandler);
|
||||
|
||||
}
|
||||
|
||||
@@ -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(() -> {
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user