remove unuse code
This commit is contained in:
@@ -32,10 +32,8 @@ public class RealTimeActivity extends AppCompatActivity implements IMogoCloudOnM
|
||||
|
||||
snapshotStartButton = findViewById(R.id.snapshotStart);
|
||||
snapshotStartButton.setOnClickListener(view -> {
|
||||
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isNeedUploadCoordinatesDurationInTime()) {
|
||||
MoGoAiCloudRealTime.startRealTime(this, "com.mogo.launcher");
|
||||
MoGoAiCloudRealTime.registerOnMsgListener(this);
|
||||
}
|
||||
MoGoAiCloudRealTime.startRealTime(this, "com.mogo.launcher");
|
||||
MoGoAiCloudRealTime.registerOnMsgListener(this);
|
||||
});
|
||||
|
||||
snapshotStopButton = findViewById(R.id.snapshotStop);
|
||||
@@ -47,7 +45,6 @@ public class RealTimeActivity extends AppCompatActivity implements IMogoCloudOnM
|
||||
|
||||
private void setConfig() {
|
||||
MoGoAiCloudClient.getInstance().getAiCloudClientConfig().setIsUseExternalLocation(false);
|
||||
MoGoAiCloudClient.getInstance().getAiCloudClientConfig().setNeedUploadCoordinatesDurationInTime(true);
|
||||
}
|
||||
|
||||
public void stopRealTimeService() {
|
||||
|
||||
@@ -61,11 +61,6 @@ public class MoGoAiCloudClientConfig {
|
||||
*/
|
||||
private boolean mIsUseExternalLocation;
|
||||
|
||||
/**
|
||||
* 是否上传当前位置信息
|
||||
*/
|
||||
private boolean isNeedUploadCoordinatesDurationInTime;
|
||||
|
||||
/**
|
||||
* 设置HttpDns的位置监听
|
||||
*/
|
||||
@@ -267,14 +262,6 @@ public class MoGoAiCloudClientConfig {
|
||||
mIHttpDnsCurrentLocation = IHttpDnsCurrentLocation;
|
||||
}
|
||||
|
||||
public boolean isNeedUploadCoordinatesDurationInTime() {
|
||||
return isNeedUploadCoordinatesDurationInTime;
|
||||
}
|
||||
|
||||
public void setNeedUploadCoordinatesDurationInTime(boolean needUploadCoordinatesDurationInTime) {
|
||||
isNeedUploadCoordinatesDurationInTime = needUploadCoordinatesDurationInTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MoGoAiCloudClientConfig{" +
|
||||
@@ -287,7 +274,6 @@ public class MoGoAiCloudClientConfig {
|
||||
", token='" + token + '\'' +
|
||||
", sn='" + sn + '\'' +
|
||||
", mLoopCheckDelay=" + mLoopCheckDelay +
|
||||
", isNeedUploadCoordinatesDurationInTime=" + isNeedUploadCoordinatesDurationInTime +
|
||||
", mIHttpDnsCurrentLocation=" + mIHttpDnsCurrentLocation +
|
||||
'}';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user