forked from organicmaps/organicmaps
downloading mandatory resources automatically if the user is connected through WiFi.
This commit is contained in:
parent
172fa5ab4a
commit
d078668ba5
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue