mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
activity: Remove useless curly braces.
There are two ways to write lambdas that contain single statement, but one is definitely more compact and readable than the other.
This commit is contained in:
parent
d54b666d02
commit
57740fc0cc
1 changed files with 3 additions and 9 deletions
|
@ -187,17 +187,11 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||
setOnKeyListener(2);
|
||||
setOnKeyListener(3);
|
||||
|
||||
mPassCodeEditTexts[1].setOnFocusChangeListener((v, hasFocus) -> {
|
||||
onPassCodeEditTextFocusChange(1);
|
||||
});
|
||||
mPassCodeEditTexts[1].setOnFocusChangeListener((v, hasFocus) -> onPassCodeEditTextFocusChange(1));
|
||||
|
||||
mPassCodeEditTexts[2].setOnFocusChangeListener((v, hasFocus) -> {
|
||||
onPassCodeEditTextFocusChange(2);
|
||||
});
|
||||
mPassCodeEditTexts[2].setOnFocusChangeListener((v, hasFocus) -> onPassCodeEditTextFocusChange(2));
|
||||
|
||||
mPassCodeEditTexts[3].setOnFocusChangeListener((v, hasFocus) -> {
|
||||
onPassCodeEditTextFocusChange(3);
|
||||
});
|
||||
mPassCodeEditTexts[3].setOnFocusChangeListener((v, hasFocus) -> onPassCodeEditTextFocusChange(3));
|
||||
}
|
||||
|
||||
private void onPassCodeEditTextFocusChange(final int passCodeIndex) {
|
||||
|
|
Loading…
Reference in a new issue