format
This commit is contained in:
@@ -32,7 +32,7 @@ public class MapEventFactory {
|
||||
private final Context appContext;
|
||||
|
||||
MapEventFactory(Context appContext) {
|
||||
this.appContext = appContext;
|
||||
this.appContext = appContext;
|
||||
}
|
||||
|
||||
Event buildMapLoadEvent() {
|
||||
@@ -99,7 +99,9 @@ public class MapEventFactory {
|
||||
|
||||
private String obtainCellularCarrier(Context context) {
|
||||
TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||
if(manager == null) return NO_CARRIER;
|
||||
if (manager == null) {
|
||||
return NO_CARRIER;
|
||||
}
|
||||
String carrierName = manager.getNetworkOperatorName();
|
||||
|
||||
if (TextUtils.isEmpty(carrierName)) {
|
||||
|
||||
@@ -4,11 +4,11 @@ import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
import com.mapbox.android.telemetry.AppUserTurnstile;
|
||||
import com.mapbox.android.telemetry.MapboxTelemetry;
|
||||
import com.mapbox.android.telemetry.TelemetryEnabler;
|
||||
import com.mapbox.android.telemetry.SessionInterval;
|
||||
|
||||
import com.mapbox.android.telemetry.TelemetryEnabler;
|
||||
import com.mapbox.mapboxsdk.BuildConfig;
|
||||
import com.mapbox.mapboxsdk.Mapbox;
|
||||
import com.mapbox.mapboxsdk.maps.TelemetryDefinition;
|
||||
@@ -22,6 +22,7 @@ public class TelemetryImpl implements TelemetryDefinition {
|
||||
@Nullable
|
||||
private MapboxTelemetry telemetry;
|
||||
private MapEventFactory mapEventFactory;
|
||||
|
||||
public TelemetryImpl() {
|
||||
Context appContext = Mapbox.getApplicationContext();
|
||||
String accessToken = Mapbox.getAccessToken();
|
||||
|
||||
Reference in New Issue
Block a user