|
@@ -247,7 +247,9 @@ public class HomeFragment extends TrackerFragment {
|
|
|
}
|
|
|
|
|
|
// if the device is connected to an network display the network name
|
|
|
- if (HelperUtils.isNetworkAvailable(getActivity())) {
|
|
|
+ //SK: Temporary Bugfix
|
|
|
+ //if (HelperUtils.isNetworkAvailable(getActivity())) {
|
|
|
+ if (HelperUtils.isWifiConnected(getActivity())) {
|
|
|
setStateConnected();
|
|
|
String ssid = mConnectionInfo.getString(getString(R.string.connection_info_ssid), "\"\"");
|
|
|
mHomeTextName.setText(ssid.substring(1,ssid.length() - 1));
|
|
@@ -374,8 +376,13 @@ public class HomeFragment extends TrackerFragment {
|
|
|
mSwitchChangeListener = new CompoundButton.OnCheckedChangeListener() {
|
|
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
|
// displays a alert dialog if no network is available
|
|
|
- if (!HelperUtils.isNetworkAvailable(getActivity())) {
|
|
|
- new AlertDialog.Builder(getActivity()).setTitle(R.string.information).setMessage(R.string.network_not_connected_msg)
|
|
|
+
|
|
|
+ //SK: Temporary bugfix to limit to wifi
|
|
|
+ //if (!HelperUtils.isNetworkAvailable(getActivity())) {
|
|
|
+ if (!HelperUtils.isWifiConnected(getActivity())) {
|
|
|
+
|
|
|
+ //new AlertDialog.Builder(getActivity()).setTitle(R.string.information).setMessage(R.string.network_not_connected_msg)
|
|
|
+ new AlertDialog.Builder(getActivity()).setTitle(R.string.information).setMessage(R.string.wifi_not_connected_msg)
|
|
|
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
|