Fix Crash in the WiFi Status Test Menu
am: 582b287
* commit '582b28759551413454a7bf3e5e9e919030ceca33':
Fix Crash in the WiFi Status Test Menu
This commit is contained in:
@@ -68,12 +68,10 @@ public class WifiStatusTest extends Activity {
|
|||||||
private TextView mScanList;
|
private TextView mScanList;
|
||||||
|
|
||||||
|
|
||||||
private TextView mPingIpAddr;
|
|
||||||
private TextView mPingHostname;
|
private TextView mPingHostname;
|
||||||
private TextView mHttpClientTest;
|
private TextView mHttpClientTest;
|
||||||
private Button pingTestButton;
|
private Button pingTestButton;
|
||||||
|
|
||||||
private String mPingIpAddrResult;
|
|
||||||
private String mPingHostnameResult;
|
private String mPingHostnameResult;
|
||||||
private String mHttpClientTestResult;
|
private String mHttpClientTestResult;
|
||||||
|
|
||||||
@@ -148,7 +146,7 @@ public class WifiStatusTest extends Activity {
|
|||||||
mScanList = (TextView) findViewById(R.id.scan_list);
|
mScanList = (TextView) findViewById(R.id.scan_list);
|
||||||
|
|
||||||
|
|
||||||
mPingHostname = (TextView) findViewById(R.id.pingHostnameV4);
|
mPingHostname = (TextView) findViewById(R.id.pingHostname);
|
||||||
mHttpClientTest = (TextView) findViewById(R.id.httpClientTest);
|
mHttpClientTest = (TextView) findViewById(R.id.httpClientTest);
|
||||||
|
|
||||||
pingTestButton = (Button) findViewById(R.id.ping_test);
|
pingTestButton = (Button) findViewById(R.id.ping_test);
|
||||||
@@ -306,11 +304,9 @@ public class WifiStatusTest extends Activity {
|
|||||||
private final void updatePingState() {
|
private final void updatePingState() {
|
||||||
final Handler handler = new Handler();
|
final Handler handler = new Handler();
|
||||||
// Set all to unknown since the threads will take a few secs to update.
|
// Set all to unknown since the threads will take a few secs to update.
|
||||||
mPingIpAddrResult = getResources().getString(R.string.radioInfo_unknown);
|
|
||||||
mPingHostnameResult = getResources().getString(R.string.radioInfo_unknown);
|
mPingHostnameResult = getResources().getString(R.string.radioInfo_unknown);
|
||||||
mHttpClientTestResult = getResources().getString(R.string.radioInfo_unknown);
|
mHttpClientTestResult = getResources().getString(R.string.radioInfo_unknown);
|
||||||
|
|
||||||
mPingIpAddr.setText(mPingIpAddrResult);
|
|
||||||
mPingHostname.setText(mPingHostnameResult);
|
mPingHostname.setText(mPingHostnameResult);
|
||||||
mHttpClientTest.setText(mHttpClientTestResult);
|
mHttpClientTest.setText(mHttpClientTestResult);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user