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

Commit

Permalink
[] More updates to advanced view
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 b354436 commit 14c5d6e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class MainActivity : AppCompatActivity(), CoroutineScope {

this.network_info.text = "Network Name: " + allTheData.networkInfo.networkName
this.wifi_info.text = "Link Speed: " + allTheData.wifiInfo.linkSpeed
this.speed_results.text = "Download: " +allTheData.speedTestResults + " Upload: " +allTheData.speedTestResults.upload
this.speed_results.text = "Download: " +allTheData.speedTestResults?.download + " Upload: " +allTheData.speedTestResults?.upload
this.packet_loss.text = "Packet loss: " + allTheData.packetLoss

pass_fail_view.text = when {
pass -> "Pass"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.fivestars.wifihealthcheck.main

import android.net.wifi.WifiManager
import android.content.Context.WIFI_SERVICE
import com.fivestars.wifihealthcheck.model.AllTheData
import com.fivestars.wifihealthcheck.model.NetworkInfo
import com.fivestars.wifihealthcheck.usecase.*

Expand Down Expand Up @@ -42,7 +43,7 @@ class WifiHealthPresenter(private val mainActivity: MainActivity) {
pass = false
}

mainActivity.showResults(, wifiScanData, pass)
mainActivity.showResults(AllTheData(afterNetworkInfo, wifiInfo, wifiScanData, speedResults, packetLoss), wifiScanData, pass)

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ data class AllTheData(
val networkInfo: NetworkInfo,
val wifiInfo: WifiInfo,
val wifiScanData: WifiScanData,
val speedTestResults: SpeedTestResults?
val speedTestResults: SpeedTestResults?,
val packetLoss: Double
)
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
android:layout_height="wrap_content" />

<TextView
android:id="@+id/wifi_scan"
android:id="@+id/packet_loss"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Expand Down

0 comments on commit 14c5d6e

Please sign in to comment.