diff options
| author | Dmitry Shmidt <dimitrysh@google.com> | 2014-06-12 13:47:34 -0700 |
|---|---|---|
| committer | Dmitry Shmidt <dimitrysh@google.com> | 2014-06-12 13:47:34 -0700 |
| commit | 4bef5c56f8e8b3fe2e4809d6de7952b4597e4d88 (patch) | |
| tree | 33ef152b6f5559365ff70fee61b156978c8d6d63 /apps/Development/src/com/android | |
| parent | 9e66bc405f64a7e0590cc2d9e7092f0c74ab4bd8 (diff) | |
| download | android_development-4bef5c56f8e8b3fe2e4809d6de7952b4597e4d88.tar.gz android_development-4bef5c56f8e8b3fe2e4809d6de7952b4597e4d88.tar.bz2 android_development-4bef5c56f8e8b3fe2e4809d6de7952b4597e4d88.zip | |
Connectivity: Add current scan amount notification
Change-Id: I717926f804d7e13192b80e59019310dc63cc0df8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'apps/Development/src/com/android')
| -rw-r--r-- | apps/Development/src/com/android/development/Connectivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/Development/src/com/android/development/Connectivity.java b/apps/Development/src/com/android/development/Connectivity.java index accdbf09d..93d199b15 100644 --- a/apps/Development/src/com/android/development/Connectivity.java +++ b/apps/Development/src/com/android/development/Connectivity.java @@ -225,10 +225,13 @@ public class Connectivity extends Activity { mStartTime = -1; } Log.d(TAG, "Scan: READY " + mScanCur); + mScanResults.setVisibility(View.INVISIBLE); List<ScanResult> wifiScanResults = mWm.getScanResults(); if (wifiScanResults != null) { mTotalScanCount += wifiScanResults.size(); + mScanResults.setText("Current scan = " + Long.toString(wifiScanResults.size())); + mScanResults.setVisibility(View.VISIBLE); Log.d(TAG, "Scan: Results = " + wifiScanResults.size()); } @@ -237,6 +240,7 @@ public class Connectivity extends Activity { if (mScanCur == 0) { unregisterReceiver(mScanRecv); mScanButton.setText(GET_SCAN_RES); + mScanResults.setVisibility(View.INVISIBLE); } else { Log.d(TAG, "Scan: START " + mScanCur); mStartTime = SystemClock.elapsedRealtime(); |
