fix: 修改一级情报无法采集的问题,修改gps位置记录只在信号强度有变化时才更新的问题
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 30
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
//ndkVersion '23.0.7123448'
|
//ndkVersion '23.0.7123448'
|
||||||
|
|
||||||
@@ -9,8 +9,8 @@ android {
|
|||||||
applicationId "com.navinfo.outdoor"
|
applicationId "com.navinfo.outdoor"
|
||||||
minSdkVersion 22
|
minSdkVersion 22
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 12
|
versionCode 13
|
||||||
versionName "8.1211"
|
versionName "8.220128"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
@Override
|
@Override
|
||||||
public void onGpsCount(int count) {
|
public void onGpsCount(int count) {
|
||||||
initCount = count;
|
initCount = count;
|
||||||
gpsLocation = gpsUtils.getLocation();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
RadioGroup radioGroupPicture = findViewById(R.id.radio_group_picture);
|
RadioGroup radioGroupPicture = findViewById(R.id.radio_group_picture);
|
||||||
@@ -811,6 +810,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
}
|
}
|
||||||
sb.append(initCount);
|
sb.append(initCount);
|
||||||
sb.append(",");
|
sb.append(",");
|
||||||
|
gpsLocation = gpsUtils.getLocation();
|
||||||
if (gpsLocation != null) {
|
if (gpsLocation != null) {
|
||||||
// double[] doubles = Gps.toGCJ02Point(gpsLocation.getLatitude(), gpsLocation.getLongitude());
|
// double[] doubles = Gps.toGCJ02Point(gpsLocation.getLatitude(), gpsLocation.getLongitude());
|
||||||
sb.append(gpsLocation.getLatitude());
|
sb.append(gpsLocation.getLatitude());
|
||||||
|
|||||||
@@ -772,7 +772,7 @@ public class GatherGetFragment extends BaseFragment implements View.OnClickListe
|
|||||||
* @param url poi类型对应的url
|
* @param url poi类型对应的url
|
||||||
*/
|
*/
|
||||||
private void receivedTaskByNet(String url, PoiEntity poiEntity, boolean isSaver, int statusId) {
|
private void receivedTaskByNet(String url, PoiEntity poiEntity, boolean isSaver, int statusId) {
|
||||||
if (poiEntity.getTaskId() != 0) {
|
if (poiEntity.getTaskId() == 0) {
|
||||||
ToastUtils.Message(getActivity(),"无此任务");
|
ToastUtils.Message(getActivity(),"无此任务");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user