Skip to content

Commit 2907eb5

Browse files
committed
Don't bother with separate Button variables in MainActivity
1 parent 0f854f0 commit 2907eb5

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

app/src/main/java/io/github/yawnoc/strokeinput/MainActivity.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,8 @@ protected void onCreate(final Bundle savedInstanceState) {
3737
super.onCreate(savedInstanceState);
3838
setContentView(R.layout.activity_main);
3939

40-
final Button inputSettingsButton =
41-
findViewById(R.id.input_settings_button);
42-
inputSettingsButton.setOnClickListener(this);
43-
44-
final Button switchKeyboardButton =
45-
findViewById(R.id.switch_keyboard_button);
46-
switchKeyboardButton.setOnClickListener(this);
40+
findViewById(R.id.input_settings_button).setOnClickListener(this);
41+
findViewById(R.id.switch_keyboard_button).setOnClickListener(this);
4742

4843
}
4944

0 commit comments

Comments
 (0)