修改领取范围
This commit is contained in:
parent
ede133f6d6
commit
c8949b6b02
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
ndkVersion '23.0.7123448'
|
//ndkVersion '23.0.7123448'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.navinfo.outdoor"
|
applicationId "com.navinfo.outdoor"
|
||||||
|
@ -79,11 +79,11 @@ public class UserApplication extends Application {
|
|||||||
//builder.cookieJar(new CookieJarImpl(new MemoryCookieStore()));
|
//builder.cookieJar(new CookieJarImpl(new MemoryCookieStore()));
|
||||||
//超时时间设置,默认60秒
|
//超时时间设置,默认60秒
|
||||||
//全局的读取超时时间
|
//全局的读取超时时间
|
||||||
builder.readTimeout(5000, TimeUnit.MILLISECONDS);
|
builder.readTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);
|
||||||
//全局的写入超时时间
|
//全局的写入超时时间
|
||||||
builder.writeTimeout(5000, TimeUnit.MILLISECONDS);
|
builder.writeTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);
|
||||||
//全局的连接超时时间
|
//全局的连接超时时间
|
||||||
builder.connectTimeout(5000, TimeUnit.MILLISECONDS);
|
builder.connectTimeout(OkGo.DEFAULT_MILLISECONDS, TimeUnit.MILLISECONDS);
|
||||||
OkGo.getInstance().init(this)
|
OkGo.getInstance().init(this)
|
||||||
.setOkHttpClient(builder.build())
|
.setOkHttpClient(builder.build())
|
||||||
//全局统一缓存模式,默认不使用缓存,可以不传
|
//全局统一缓存模式,默认不使用缓存,可以不传
|
||||||
|
@ -307,7 +307,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.btn_poi_video_upload:
|
case R.id.btn_poi_video_upload:
|
||||||
showLoadingDialog();
|
showFileLoadingDialog();
|
||||||
ArrayList<File> fileList = new ArrayList<>();
|
ArrayList<File> fileList = new ArrayList<>();
|
||||||
if (fmPoiVideoPic.getTag() != null) {
|
if (fmPoiVideoPic.getTag() != null) {
|
||||||
List<File> videoFileList = (List<File>) fmPoiVideoPic.getTag();
|
List<File> videoFileList = (List<File>) fmPoiVideoPic.getTag();
|
||||||
|
@ -72,6 +72,8 @@ import java.util.Calendar;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import okhttp3.OkHttpClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 寻宝-点击上传弹窗-道路
|
* 寻宝-点击上传弹窗-道路
|
||||||
*/
|
*/
|
||||||
@ -316,7 +318,8 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
startActivityForResult(intent, 0x101);
|
startActivityForResult(intent, 0x101);
|
||||||
break;
|
break;
|
||||||
case R.id.road_upload:
|
case R.id.road_upload:
|
||||||
showLoadingDialog();
|
showFileLoadingDialog();
|
||||||
|
setLoadingDialogText("压缩中。。");
|
||||||
ArrayList<File> fileList = new ArrayList<>();
|
ArrayList<File> fileList = new ArrayList<>();
|
||||||
if (fmRoadPic.getTag() != null) {
|
if (fmRoadPic.getTag() != null) {
|
||||||
List<File> videoFileList = (List<File>) fmRoadPic.getTag();
|
List<File> videoFileList = (List<File>) fmRoadPic.getTag();
|
||||||
@ -348,10 +351,10 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
}else {
|
}else {
|
||||||
|
dismissLoadingDialog();
|
||||||
Toast.makeText(getContext(), "请录像", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getContext(), "请录像", Toast.LENGTH_SHORT).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -509,6 +512,7 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showFileLoadingDialog();
|
showFileLoadingDialog();
|
||||||
|
setLoadingDialogText("上传中。。");
|
||||||
OkGo
|
OkGo
|
||||||
// 请求方式和请求url
|
// 请求方式和请求url
|
||||||
.<OtherUploadPicBean>post(HttpInterface.ROAD_TASK_UPLOAD_PIC)
|
.<OtherUploadPicBean>post(HttpInterface.ROAD_TASK_UPLOAD_PIC)
|
||||||
|
@ -220,7 +220,7 @@ public class StaySubmitFragment extends BaseFragment implements View.OnClickList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (poiEntities.size() > 0) {
|
if (poiEntities.size() > 0) {
|
||||||
showLoadingDialog();
|
showFileLoadingDialog();
|
||||||
PoiSaveUtils.getInstance(getActivity()).uploadPoiEntityBatch(poiEntities);
|
PoiSaveUtils.getInstance(getActivity()).uploadPoiEntityBatch(poiEntities);
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(getContext(), "请选择要删除的条目数据", Toast.LENGTH_SHORT).show();
|
Toast.makeText(getContext(), "请选择要删除的条目数据", Toast.LENGTH_SHORT).show();
|
||||||
|
@ -47,7 +47,7 @@ public class PoiSaveUtils {
|
|||||||
private Gson gson;
|
private Gson gson;
|
||||||
private static PoiSaveUtils instance;
|
private static PoiSaveUtils instance;
|
||||||
private int anInt=0;
|
private int anInt=0;
|
||||||
private int bInt=1;
|
private int bInt=0;
|
||||||
|
|
||||||
public static PoiSaveUtils getInstance(Activity mContext) {
|
public static PoiSaveUtils getInstance(Activity mContext) {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/progressBar_tx"
|
android:id="@+id/progressBar_tx"
|
||||||
android:layout_width="50dp"
|
android:layout_width="100dp"
|
||||||
|
android:gravity="center"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/progressBar1"
|
android:layout_below="@+id/progressBar1"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user