downloading mandatory resources automatically if the user is connected through WiFi.

This commit is contained in:
rachytski 2012-07-05 17:13:51 -07:00 committed by Alex Zolotarev
parent 172fa5ab4a
commit d078668ba5

View file

@ -17,6 +17,7 @@ import android.widget.ProgressBar;
import android.widget.TextView;
import com.mapswithme.maps.location.LocationService;
import com.mapswithme.util.ConnectionState;
public class DownloadResourcesActivity extends Activity implements LocationService.Listener, MapStorage.Listener
{
@ -287,6 +288,9 @@ public class DownloadResourcesActivity extends Activity implements LocationServi
mLocationMsgView = (TextView)findViewById(R.id.download_resources_location_message);
prepareFilesDownload();
if (ConnectionState.getState(this) == ConnectionState.CONNECTED_BY_WIFI)
onDownloadClicked(mDownloadButton);
}
}