Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
[] A couple of tweaks
Browse files Browse the repository at this point in the history
           high-level explanation of what the changes do.

[](https://fivestars.atlassian.net/browse/)
  • Loading branch information
darran-kelinske-fivestars committed Jun 5, 2019
1 parent a5d8aa6 commit 6fc5b16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
requestWifiPermission()
advanced_button.setOnClickListener {
advanced_results_layout.visibility = View.VISIBLE
advanced_button.visibility = View.GONE
pass_fail_layout.visibility = View.GONE
}
}

Expand Down Expand Up @@ -81,7 +81,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope {

fun showResults(wifiScanData: WifiScanData, pass: Boolean) {
progress_frame_layout.visibility = View.GONE
pass_fail_view.visibility = View.VISIBLE
pass_fail_layout.visibility = View.VISIBLE
advanced_button.visibility = View.VISIBLE

pass_fail_view.text = when {
Expand Down
15 changes: 11 additions & 4 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,22 @@
android:text="Running Diagnostic Tests"/>
</LinearLayout>

<LinearLayout
android:id="@+id/pass_fail_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:visibility="gone">

<TextView
android:id="@+id/pass_fail_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:gravity="top"
android:textSize="24sp"
android:visibility="gone"/>
android:textSize="24sp"/>

<Button
android:id="@+id/advanced_button"
Expand All @@ -47,8 +54,8 @@
android:layout_marginTop="24dp"
android:layout_gravity="center_horizontal"
android:textSize="24sp"
android:text="Advanced"
android:visibility="gone"/>
android:text="Advanced"/>
</LinearLayout>

<LinearLayout
android:id="@+id/advanced_results_layout"
Expand Down

0 comments on commit 6fc5b16

Please sign in to comment.