Background task refactor & fetch user profile during login proccess #19

Merged
s416204 merged 11 commits from sharing-tab-rest into develop 2018-10-14 13:56:22 +02:00
Showing only changes of commit 89ef83033b - Show all commits

View File

@ -6,6 +6,8 @@ import android.view.View;
import com.mapbox.mapboxsdk.Mapbox;
import com.mapbox.mapboxsdk.maps.MapView;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
import com.uam.wmi.findmytutor.R;
import static com.mapbox.mapboxsdk.Mapbox.getApplicationContext;
@ -21,43 +23,54 @@ public class MapActivity extends BaseActivity {
Mapbox.getInstance(this, getString(R.string.access_token));
mapView = findViewById(R.id.mapView);
mapView.onCreate(savedInstanceState);
mapView.getMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(MapboxMap mapboxMap) {
// Customize map with markers, polylines, etc.
}
});
}
@Override
public void onStart()
{
super.onStart();
mapView.onStart();
Log.d(tag, "In the onStart() event");
}
@Override
public void onRestart()
{
super.onRestart();
Log.d(tag, "In the onRestart() event");
}
@Override
public void onResume()
{
// Add the mapView lifecycle to the activity's lifecycle methods
@Override
public void onResume() {
super.onResume();
mapView.onResume();
Log.d(tag, "In the onResume() event");
}
@Override
public void onPause()
{
super.onPause();
mapView.onPause();
Log.d(tag, "In the onPause() event");
protected void onStart() {
super.onStart();
mapView.onStart();
}
@Override
public void onStop()
{
protected void onStop() {
super.onStop();
mapView.onStop();
Log.d(tag, "In the onStop() event");
}
@Override
public void onPause() {
super.onPause();
mapView.onPause();
}
@Override
public void onLowMemory() {
super.onLowMemory();
mapView.onLowMemory();
}
@Override
protected void onDestroy() {
super.onDestroy();
mapView.onDestroy();
}
@Override