summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-07-17 02:57:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-16 23:30:53 +0000
commit9b435f29d72d3be25c97ae3234ba375df055d09d (patch)
treeb249c31811a8f433f6e257c4b89c694aafb81948 /src/com
parenta1ed7f2f77f2518809bd369c236fb1d07fe2db6c (diff)
parente817a66e83191c0ae74acd53a538a0965eba2683 (diff)
downloadpackages_apps_Settings-9b435f29d72d3be25c97ae3234ba375df055d09d.tar.gz
packages_apps_Settings-9b435f29d72d3be25c97ae3234ba375df055d09d.tar.bz2
packages_apps_Settings-9b435f29d72d3be25c97ae3234ba375df055d09d.zip
Merge "Fix bug #15702424 add-wifi setting screen has no title" into lmp-dev
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/SettingsActivity.java2
-rw-r--r--src/com/android/settings/wifi/WifiPickerActivity.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java
index 087540bc1..290473e93 100644
--- a/src/com/android/settings/SettingsActivity.java
+++ b/src/com/android/settings/SettingsActivity.java
@@ -476,7 +476,7 @@ public class SettingsActivity extends Activity
mIsShortcut = isShortCutIntent(intent) || isLikeShortCutIntent(intent) ||
intent.getBooleanExtra(EXTRA_SHOW_FRAGMENT_AS_SHORTCUT, false);
- final ComponentName cn = getIntent().getComponent();
+ final ComponentName cn = intent.getComponent();
final String className = cn.getClassName();
mIsShowingDashboard = className.equals(Settings.class.getName());
diff --git a/src/com/android/settings/wifi/WifiPickerActivity.java b/src/com/android/settings/wifi/WifiPickerActivity.java
index b3064663d..5bdceb9ea 100644
--- a/src/com/android/settings/wifi/WifiPickerActivity.java
+++ b/src/com/android/settings/wifi/WifiPickerActivity.java
@@ -18,6 +18,7 @@ package com.android.settings.wifi;
import com.android.settings.ButtonBarHandler;
import com.android.settings.SettingsActivity;
import com.android.settings.wifi.p2p.WifiP2pSettings;
+import com.android.settings.R;
import android.content.Intent;
import android.preference.PreferenceFragment;
@@ -31,6 +32,7 @@ public class WifiPickerActivity extends SettingsActivity implements ButtonBarHan
Intent modIntent = new Intent(super.getIntent());
if (!modIntent.hasExtra(EXTRA_SHOW_FRAGMENT)) {
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, getWifiSettingsClass().getName());
+ modIntent.putExtra(EXTRA_SHOW_FRAGMENT_TITLE_RESID, R.string.wifi_select_network);
}
return modIntent;
}