Merge "make the wifi button go where it's supposed to."

This commit is contained in:
Joe Onorato
2010-12-08 15:51:33 -08:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 0 deletions

View File

@@ -64,6 +64,7 @@
<TextView
android:id="@+id/network_label"
style="@style/StatusBarPanelSettingsContents"
android:text="@string/status_bar_settings_wifi_button"
/>
<ImageView
android:layout_width="wrap_content"

View File

@@ -74,6 +74,9 @@
<!-- Name of the button that links to the Settings app. [CHAR LIMIT=NONE] -->
<string name="status_bar_settings_settings_button">Settings</string>
<!-- Name of the button that links to the Wifi settings screen. [CHAR LIMIT=NONE] -->
<string name="status_bar_settings_wifi_button">Wi-Fi</string>
<!-- Label in the system panel for airplane mode (all radios are turned off)[CHAR LIMIT=30] -->
<string name="status_bar_settings_airplane">Airplane mode</string>

View File

@@ -99,6 +99,9 @@ public class SettingsView extends LinearLayout implements View.OnClickListener {
// ----------------------------
private void onClickNetwork() {
Slog.d(TAG, "onClickNetwork");
getContext().startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
getStatusBarManager().collapse();
}
// Settings