Skip to content

Commit 09ea0c4

Browse files
committed
Removed unneded casting
1 parent 4cce061 commit 09ea0c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/src/main/java/ro/polak/webserver/MainActivity.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ protected void doOnCreate() {
4949

5050
setContentView(R.layout.activity_main);
5151

52-
imgView = (ImageView) findViewById(R.id.ImageView01);
53-
status = (TextView) findViewById(R.id.TextView01);
54-
ipText = (TextView) findViewById(R.id.TextView02);
55-
consoleText = (TextView) findViewById(R.id.textView1);
56-
actionButton = (Button) findViewById(R.id.Button01);
52+
imgView = findViewById(R.id.ImageView01);
53+
status = findViewById(R.id.TextView01);
54+
ipText = findViewById(R.id.TextView02);
55+
consoleText = findViewById(R.id.textView1);
56+
actionButton = findViewById(R.id.Button01);
5757
actionButton.setOnClickListener(new ButtonListener(this));
5858

59-
backgroundButton = (Button) findViewById(R.id.Button02);
59+
backgroundButton = findViewById(R.id.Button02);
6060
backgroundButton.setOnClickListener(new ButtonListener(this));
6161

62-
quitButton = (Button) findViewById(R.id.Button03);
62+
quitButton = findViewById(R.id.Button03);
6363
quitButton.setOnClickListener(new ButtonListener(this));
6464

65-
requestPermissionsButton = (Button) findViewById(R.id.Button04);
65+
requestPermissionsButton = findViewById(R.id.Button04);
6666
requestPermissionsButton.setOnClickListener(new ButtonListener(this));
6767

6868
status.setText("Initializing");

0 commit comments

Comments
 (0)