Skip to content

Commit

Permalink
Rename "Wi-Fi Access Points" to "Wi-Fi Access Points Scanned"
Browse files Browse the repository at this point in the history
  • Loading branch information
cpeterso committed Sep 5, 2013
1 parent 816c2a5 commit 65edc71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
android:textAppearance="?android:attr/textAppearanceMedium" />

<TextView
android:id="@+id/reportedTextView"
android:id="@+id/wifi_access_points"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
Expand All @@ -30,7 +30,7 @@
android:id="@+id/edit_nickname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/reportedTextView"
android:layout_below="@+id/wifi_access_points"
android:inputType="textPersonName"
android:selectAllOnFocus="true"
android:text="@string/enter_nickname" >
Expand Down
4 changes: 2 additions & 2 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<string name="stop_scanning">Stop Scanning</string>
<string name="view_leaderboard">View Leaderboard</string>
<string name="service_name">Mozilla Stumbler</string>
<string name="service_scanning">Scanning for WiFi and Cellular networks</string>
<string name="wifi_access_points">Wi-Fi Access Points: %1$d</string>
<string name="service_scanning">Scanning for Wi-Fi and Cellular networks</string>
<string name="wifi_access_points">Wi-Fi Access Points Scanned: %1$d</string>
<string name="gps_satellites">GPS Satellites Visible: %1$d</string>
<string name="enter_nickname">Enter Nickname</string>
<string name="battery_low_warning">Battery low, MozStumbler will stop scanning</string>
Expand Down
8 changes: 4 additions & 4 deletions src/org/mozilla/mozstumbler/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ protected void updateUI() {
Log.e(LOGTAG, "", e);
}

TextView reportedTextView = (TextView) findViewById(R.id.reportedTextView);
String reportedString = getResources().getString(R.string.wifi_access_points);
reportedString = String.format(reportedString, APs);
reportedTextView.setText(reportedString);
String APsScannedString = getResources().getString(R.string.wifi_access_points);
APsScannedString = String.format(APsScannedString, APs);
TextView APsScanned = (TextView) findViewById(R.id.wifi_access_points);
APsScanned.setText(APsScannedString);

String fixesString = getResources().getString(R.string.gps_satellites);
fixesString = String.format(fixesString, mGpsFixes);
Expand Down

0 comments on commit 65edc71

Please sign in to comment.