diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-05-31 12:42:25 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2012-05-31 12:44:03 -0700 |
commit | a9d76b3bcccb6ca5837efe53f2c7e5b880404c15 (patch) | |
tree | 72bfbd5e299a8637b729f3b8f377e18aceb288fb /src | |
parent | f0780a7cad2bb8f430d5766115f7f9f50698cfb3 (diff) | |
download | packages_apps_settings-a9d76b3bcccb6ca5837efe53f2c7e5b880404c15.zip packages_apps_settings-a9d76b3bcccb6ca5837efe53f2c7e5b880404c15.tar.gz packages_apps_settings-a9d76b3bcccb6ca5837efe53f2c7e5b880404c15.tar.bz2 |
Fetch peers after preferenceScreen is ready
Bug: 6450152
Change-Id: Ic95c7fdba5fa7cb54b0c54ed9a423e0e0683ad2f
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/wifi/p2p/WifiP2pSettings.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java index b369afe..b336f1a 100644 --- a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java +++ b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java @@ -243,7 +243,6 @@ public class WifiP2pSettings extends SettingsPreferenceFragment public void onResume() { super.onResume(); getActivity().registerReceiver(mReceiver, mIntentFilter); - mWifiP2pManager.requestPeers(mChannel, WifiP2pSettings.this); } @Override @@ -418,6 +417,9 @@ public class WifiP2pSettings extends SettingsPreferenceFragment mPeersGroup.setEnabled(true); preferenceScreen.addPreference(mPeersGroup); + + /* Request latest set of peers */ + mWifiP2pManager.requestPeers(mChannel, WifiP2pSettings.this); } } |