Added MultiDex support so the app runs on api level 19; Fixed small bug in google maps showLocation method
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.deke.risk.riskahead;
|
||||
|
||||
import android.app.ActionBar;
|
||||
import android.app.SearchManager;
|
||||
import android.app.SearchableInfo;
|
||||
import android.content.Context;
|
||||
@@ -29,7 +28,6 @@ import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RatingBar;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.crashlytics.android.Crashlytics;
|
||||
@@ -685,15 +683,11 @@ public class MapsActivity extends BaseActivity implements LoaderManager.LoaderCa
|
||||
markerOptions.position(position);
|
||||
markerOptions.title(c.getString(0));
|
||||
}
|
||||
|
||||
if (position != null) {
|
||||
CameraUpdate cameraPosition = CameraUpdateFactory.newLatLng(position);
|
||||
mMap.animateCamera(cameraPosition);
|
||||
}
|
||||
|
||||
if (position != null) {
|
||||
myLocation = new LatLng(position.latitude, position.longitude);
|
||||
}
|
||||
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, DEFAULT_ZOOM_LEVEL));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,6 +2,8 @@ package org.deke.risk.riskahead.helper;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.support.multidex.MultiDex;
|
||||
import android.support.multidex.MultiDexApplication;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.volley.DefaultRetryPolicy;
|
||||
@@ -20,7 +22,7 @@ import io.fabric.sdk.android.Fabric;
|
||||
* Date of Release: 10.02.2016
|
||||
*
|
||||
*/
|
||||
public class AppController extends Application {
|
||||
public class AppController extends MultiDexApplication {
|
||||
|
||||
public static final String TAG = AppController.class.getSimpleName();
|
||||
private static final int MY_SOCKET_TIMEOUT_MS = 10000;
|
||||
|
||||
Reference in New Issue
Block a user