Skip to content

Commit

Permalink
Change Button to TextView
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed May 2, 2024
1 parent 8a917f0 commit 307a6fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private enum PAIRING_STATE {
LinearLayout bottomPairButton;

// Connected Device Status
Button deviceConnectionStatusBtn;
TextView deviceConnectionStatusBtn;

private int currentOrientation;

Expand Down Expand Up @@ -750,7 +750,7 @@ private void setupFontStyle() {
*/
private void initViews() {
logi("initViews");
deviceConnectionStatusBtn = (Button) findViewById(R.id.connected_device_status_button);
deviceConnectionStatusBtn = findViewById(R.id.connected_device_status_button);
bottomPairButton = (LinearLayout) findViewById(R.id.ll_pairing_activity_screen);
pairButtonView = (LinearLayout) findViewById(R.id.pairButtonView);
pairTipView = (LinearLayout) findViewById(R.id.pairTipView);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/pairing_device_state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- Connection status-->
<include layout="@layout/pairing_activity_connection_status" />

<Button
<TextView
android:id="@+id/connected_device_status_button"
style="@style/pairing_device_state_button_style"
android:background="@drawable/grey_btn"
Expand Down

0 comments on commit 307a6fd

Please sign in to comment.