Snap for 9005101 from 6a6374bc9b to tm-qpr1-release
Change-Id: Iaa01046da324635662262331701d17e98be1e5ac
This commit is contained in:
@@ -251,6 +251,9 @@ public class AllInOneTetherSettings extends RestrictedDashboardFragment
|
||||
}
|
||||
final Context context = getContext();
|
||||
if (context != null) {
|
||||
// The intent WIFI_AP_STATE_CHANGED_ACTION is not sticky intent after SC-V2
|
||||
// But ACTION_TETHER_STATE_CHANGED is still sticky intent. So no need to handle
|
||||
// initial state for WIFI_AP_STATE_CHANGED_ACTION
|
||||
IntentFilter filter = new IntentFilter(ACTION_TETHER_STATE_CHANGED);
|
||||
filter.addAction(WIFI_AP_STATE_CHANGED_ACTION);
|
||||
context.registerReceiver(mTetherChangeReceiver, filter);
|
||||
|
||||
@@ -132,7 +132,7 @@ public class DreamPickerController extends BasePreferenceController {
|
||||
mActiveDream = mDreamInfo;
|
||||
mBackend.setActiveDream(mDreamInfo.componentName);
|
||||
mMetricsFeatureProvider.action(SettingsEnums.PAGE_UNKNOWN,
|
||||
SettingsEnums.ACTION_DREAM_SELECT_TYPE, SettingsEnums.PAGE_UNKNOWN,
|
||||
SettingsEnums.ACTION_DREAM_SELECT_TYPE, SettingsEnums.DREAM,
|
||||
mDreamInfo.componentName.flattenToString(), 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -106,6 +106,9 @@ public class HotspotConditionController implements ConditionalCardController {
|
||||
@Override
|
||||
public void startMonitoringStateChange() {
|
||||
mAppContext.registerReceiver(mReceiver, WIFI_AP_STATE_FILTER);
|
||||
// The intent WIFI_AP_STATE_CHANGED_ACTION is not sticky intent anymore after SC-V2
|
||||
// Handle the initial state after register the receiver.
|
||||
mConditionManager.onConditionChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -159,6 +159,9 @@ public class WifiTetherSettings extends RestrictedDashboardFragment
|
||||
if (context != null) {
|
||||
context.registerReceiver(mTetherChangeReceiver, TETHER_STATE_CHANGE_FILTER,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
// The intent WIFI_AP_STATE_CHANGED_ACTION is not sticky intent anymore after SC-V2
|
||||
// Handle the initial state after register the receiver.
|
||||
updateDisplayWithNewConfig();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,7 @@ public class WifiTetherSwitchBarController implements
|
||||
mSwitchBar.addOnSwitchChangeListener(this);
|
||||
mContext.registerReceiver(mReceiver, WIFI_INTENT_FILTER,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
handleWifiApStateChanged(mWifiManager.getWifiApState());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user