|
@@ -173,7 +173,7 @@ public class ServicesFragment extends Fragment {
|
|
switchChangeListener = new CompoundButton.OnCheckedChangeListener() {
|
|
switchChangeListener = new CompoundButton.OnCheckedChangeListener() {
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
mProfile = ProfileManager.getInstance().getCurrentActivatedProfile();
|
|
mProfile = ProfileManager.getInstance().getCurrentActivatedProfile();
|
|
- if (!HelperUtils.isWifiConnected(getActivity())) {
|
|
|
|
|
|
+ if (!HelperUtils.isNetworkAvailable(getActivity())) {
|
|
new AlertDialog.Builder(getActivity())
|
|
new AlertDialog.Builder(getActivity())
|
|
.setTitle(R.string.information)
|
|
.setTitle(R.string.information)
|
|
.setMessage(R.string.wifi_not_connected_msg)
|
|
.setMessage(R.string.wifi_not_connected_msg)
|