修改相关bug ,添加日志
This commit is contained in:
@@ -184,8 +184,6 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
fragmentTransaction.hide(photoFragment);
|
fragmentTransaction.hide(photoFragment);
|
||||||
if (videoFragment!=null)//查看详情-视频 37
|
if (videoFragment!=null)//查看详情-视频 37
|
||||||
fragmentTransaction.hide(videoFragment);
|
fragmentTransaction.hide(videoFragment);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void selectorFragment(int i) {
|
public void selectorFragment(int i) {
|
||||||
@@ -503,7 +501,8 @@ public class FragmentManagement extends BaseActivity {
|
|||||||
|
|
||||||
|
|
||||||
private void setZtlTextColor() {
|
private void setZtlTextColor() {
|
||||||
ImmersionBar.with(this).statusBarDarkFont(true, 0.2f)
|
ImmersionBar.with(this)
|
||||||
|
.statusBarDarkFont(true, 0.2f)
|
||||||
//原理:如果当前设备支持状态栏字体变色,会设置状态栏字体为黑色,如果当前设备不支持状态栏字体变色,会使当前状态栏加上透明度,否则不执行透明度
|
//原理:如果当前设备支持状态栏字体变色,会设置状态栏字体为黑色,如果当前设备不支持状态栏字体变色,会使当前状态栏加上透明度,否则不执行透明度
|
||||||
.init();
|
.init();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ public class HomeActivity extends BaseActivity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPageScrollStateChanged(int state) { }
|
public void onPageScrollStateChanged(int state) {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
mViewPager.setCanScroll(true);
|
mViewPager.setCanScroll(true);
|
||||||
mViewPager.setNoScrollAnim(false);
|
mViewPager.setNoScrollAnim(false);
|
||||||
@@ -133,7 +134,6 @@ public class HomeActivity extends BaseActivity{
|
|||||||
//点击table layout效果
|
//点击table layout效果
|
||||||
@Override
|
@Override
|
||||||
public void onTabUnselected(TabLayout.Tab tab) {}
|
public void onTabUnselected(TabLayout.Tab tab) {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTabReselected(TabLayout.Tab tab) {}
|
public void onTabReselected(TabLayout.Tab tab) {}
|
||||||
});
|
});
|
||||||
@@ -166,7 +166,6 @@ public class HomeActivity extends BaseActivity{
|
|||||||
this.finish();
|
this.finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
|
|||||||
@@ -145,19 +145,19 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
switch (v.getId()) {
|
switch (v.getId()) {
|
||||||
case R.id.tv_register:
|
case R.id.tv_register:
|
||||||
loginBuilder.append("点击注册,");
|
loginBuilder.append("点击注册 ,");
|
||||||
Intent register = new Intent(this, FragmentManagement.class);
|
Intent register = new Intent(this, FragmentManagement.class);
|
||||||
register.putExtra("tag", 5);
|
register.putExtra("tag", 5);
|
||||||
startActivity(register);
|
startActivity(register);
|
||||||
break;
|
break;
|
||||||
case R.id.tv_forget_paw:
|
case R.id.tv_forget_paw:
|
||||||
loginBuilder.append("点击忘记密码,");
|
loginBuilder.append("点击忘记密码 ,");
|
||||||
Intent forgetPaw = new Intent(this, FragmentManagement.class);
|
Intent forgetPaw = new Intent(this, FragmentManagement.class);
|
||||||
forgetPaw.putExtra("tag", 6);
|
forgetPaw.putExtra("tag", 6);
|
||||||
startActivity(forgetPaw);
|
startActivity(forgetPaw);
|
||||||
break;
|
break;
|
||||||
case R.id.btn_login:
|
case R.id.btn_login:
|
||||||
loginBuilder.append("点击登录,");
|
loginBuilder.append("点击登录 , ");
|
||||||
btnLogin.setEnabled(false);
|
btnLogin.setEnabled(false);
|
||||||
Message message = new Message();
|
Message message = new Message();
|
||||||
message.what = 0x103;
|
message.what = 0x103;
|
||||||
@@ -180,7 +180,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.tv_statement:
|
case R.id.tv_statement:
|
||||||
loginBuilder.append("点击了用户协议,");
|
loginBuilder.append("点击了用户协议 ,");
|
||||||
Intent stateIntent = new Intent(this, StatementActivity.class);
|
Intent stateIntent = new Intent(this, StatementActivity.class);
|
||||||
startActivity(stateIntent);
|
startActivity(stateIntent);
|
||||||
break;
|
break;
|
||||||
@@ -300,7 +300,6 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
Toast.makeText(LoginActivity.this, response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
Toast.makeText(LoginActivity.this, response.getMessage() + "", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e, int id) {
|
public void onError(Throwable e, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
@@ -317,13 +316,13 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
loginBuilder.append("onPause,");
|
loginBuilder.append("onPause ,");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
super.onStop();
|
super.onStop();
|
||||||
loginBuilder.append("onStop,");
|
loginBuilder.append("onStop ,");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -191,7 +191,6 @@ public class PhotographActivity extends BaseActivity implements View.OnClickList
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -210,19 +209,20 @@ public class PhotographActivity extends BaseActivity implements View.OnClickList
|
|||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onEvent(Message data) {
|
public void onEvent(Message data) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
photographBuilder.append("onResume, ");
|
photographBuilder.append("onResume ,");
|
||||||
cameraView.open();
|
cameraView.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
photographBuilder.append("onPause, ");
|
photographBuilder.append("onPause ,");
|
||||||
cameraView.close();
|
cameraView.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
private File logFile;
|
private File logFile;
|
||||||
private StringBuilder picturesBuilder;
|
private StringBuilder picturesBuilder;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
@@ -143,7 +142,6 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
|
|
||||||
removables = new ArrayList<>();//存储轨迹的marker
|
removables = new ArrayList<>();//存储轨迹的marker
|
||||||
layerChange = findViewById(R.id.layer_change);
|
layerChange = findViewById(R.id.layer_change);
|
||||||
if (getIntent() != null) {
|
if (getIntent() != null) {
|
||||||
@@ -532,7 +530,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
picturesBuilder.append("onPause, ");
|
picturesBuilder.append("onPause ,");
|
||||||
camera.close();
|
camera.close();
|
||||||
stopTimer();
|
stopTimer();
|
||||||
}
|
}
|
||||||
@@ -540,7 +538,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
super.onStop();
|
super.onStop();
|
||||||
picturesBuilder.append("onStop, ");
|
picturesBuilder.append("onStop ,");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -556,8 +554,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
|||||||
removables.get(i).remove();
|
removables.get(i).remove();
|
||||||
}
|
}
|
||||||
removables.clear();
|
removables.clear();
|
||||||
|
picturesBuilder.append("onDestroy");
|
||||||
picturesBuilder.append("onDestroy ");
|
|
||||||
picturesBuilder.append("\r\n");
|
picturesBuilder.append("\r\n");
|
||||||
FileUtils.writeFile(logFile.getAbsolutePath(), picturesBuilder.toString(), true);
|
FileUtils.writeFile(logFile.getAbsolutePath(), picturesBuilder.toString(), true);
|
||||||
if (EventBus.getDefault().isRegistered(this)) {
|
if (EventBus.getDefault().isRegistered(this)) {
|
||||||
|
|||||||
@@ -46,15 +46,12 @@ public class VideoActivity extends BaseActivity implements View.OnClickListener
|
|||||||
imageVideo.setOnClickListener(this);
|
imageVideo.setOnClickListener(this);
|
||||||
jzvdStd.setUp(videoPath,"", Jzvd.SCREEN_NORMAL);
|
jzvdStd.setUp(videoPath,"", Jzvd.SCREEN_NORMAL);
|
||||||
Glide.with(this).asDrawable().load(videoPath).into(jzvdStd.posterImageView); //设置图片
|
Glide.with(this).asDrawable().load(videoPath).into(jzvdStd.posterImageView); //设置图片
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
Jzvd.releaseAllVideos();
|
Jzvd.releaseAllVideos();
|
||||||
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
|
|||||||
@@ -47,11 +47,10 @@ public class WebActivity extends BaseActivity implements View.OnClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initWebWork() {
|
private void initWebWork() {
|
||||||
showLoadingDialog();
|
|
||||||
Bundle bundle = getIntent().getExtras();
|
Bundle bundle = getIntent().getExtras();
|
||||||
if (bundle!=null){
|
if (bundle!=null){
|
||||||
String url = bundle.getString("url");
|
String url = bundle.getString("url");
|
||||||
if (url != null && !url.equals("")) {
|
if (url == null || url.equals("")) {
|
||||||
Toast.makeText(this, "连接失败", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "连接失败", Toast.LENGTH_SHORT).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -62,7 +61,7 @@ public class WebActivity extends BaseActivity implements View.OnClickListener {
|
|||||||
httpParams.put(entry.getKey(),entry.getValue());
|
httpParams.put(entry.getKey(),entry.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
showLoadingDialog();
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
.Builder(this)
|
.Builder(this)
|
||||||
.url(url)
|
.url(url)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.navinfo.outdoor.adapter;
|
package com.navinfo.outdoor.adapter;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -35,6 +36,7 @@ public class PoiTaskAdapter extends RecyclerView.Adapter<PoiTaskAdapter.ViewHold
|
|||||||
return new ViewHolder(inflate);
|
return new ViewHolder(inflate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("SetTextI18n")
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull @NotNull ViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull @NotNull ViewHolder holder, int position) {
|
||||||
HasSubmitBean.BodyBean.ListBean listBean = listBeans.get(position);
|
HasSubmitBean.BodyBean.ListBean listBean = listBeans.get(position);
|
||||||
@@ -48,7 +50,7 @@ public class PoiTaskAdapter extends RecyclerView.Adapter<PoiTaskAdapter.ViewHold
|
|||||||
}else if (listBean.getAuditStatus() == -1){
|
}else if (listBean.getAuditStatus() == -1){
|
||||||
holder.tvAuditStatus.setText("待审核");
|
holder.tvAuditStatus.setText("待审核");
|
||||||
}
|
}
|
||||||
holder.tvMany.setText("¥0.0");
|
holder.tvMany.setText("¥"+listBean.getPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ public class Constant {
|
|||||||
public static SlidingUpPanelLayout SLIDING_LAYOUT = null;//設置
|
public static SlidingUpPanelLayout SLIDING_LAYOUT = null;//設置
|
||||||
public static boolean IS_FILTER_LIST_ITEM = true;//poi页面的查重
|
public static boolean IS_FILTER_LIST_ITEM = true;//poi页面的查重
|
||||||
public static TencentMap.OnMarkerClickListener markerClickListener = null;
|
public static TencentMap.OnMarkerClickListener markerClickListener = null;
|
||||||
public static final String NAVIN_FO = "10.12";//版本日期
|
public static final String NAVIN_FO = "10.14";//版本日期
|
||||||
/*
|
/*
|
||||||
*联系我们的QQ群名称和QQ群号
|
*联系我们的QQ群名称和QQ群号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -122,6 +122,15 @@ public class HasSubmitBean {
|
|||||||
private Integer userId;
|
private Integer userId;
|
||||||
private String createTime;
|
private String createTime;
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
private double price;
|
||||||
|
|
||||||
|
public double getPrice() {
|
||||||
|
return price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrice(double price) {
|
||||||
|
this.price = price;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getAuditStatus() {
|
public Integer getAuditStatus() {
|
||||||
return auditStatus;
|
return auditStatus;
|
||||||
|
|||||||
@@ -86,25 +86,25 @@ public class FindFragment extends BaseFragment implements View.OnClickListener{
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
switch (v.getId()) {
|
switch (v.getId()) {
|
||||||
case R.id.linear_task_prefecture:
|
case R.id.linear_task_prefecture:
|
||||||
findBuilder.append("点击了最新公告:任务专区 跳转,");
|
findBuilder.append("点击了最新公告:任务专区 跳转 ,");
|
||||||
Intent prefectureIntent = new Intent(getActivity(), FragmentManagement.class);
|
Intent prefectureIntent = new Intent(getActivity(), FragmentManagement.class);
|
||||||
prefectureIntent.putExtra("tag", 7);
|
prefectureIntent.putExtra("tag", 7);
|
||||||
startActivity(prefectureIntent);
|
startActivity(prefectureIntent);
|
||||||
break;
|
break;
|
||||||
case R.id.linear_task_explain:
|
case R.id.linear_task_explain:
|
||||||
findBuilder.append("点击了帮助中心:任务说明 跳转,");
|
findBuilder.append("点击了帮助中心:任务说明 跳转 ,");
|
||||||
Intent explainIntent = new Intent(getActivity(), FragmentManagement.class);
|
Intent explainIntent = new Intent(getActivity(), FragmentManagement.class);
|
||||||
explainIntent.putExtra("tag", 8);
|
explainIntent.putExtra("tag", 8);
|
||||||
startActivity(explainIntent);
|
startActivity(explainIntent);
|
||||||
break;
|
break;
|
||||||
case R.id.linear_event_prefecture:
|
case R.id.linear_event_prefecture:
|
||||||
findBuilder.append("点击了最新公告:活动专区 跳转,");
|
findBuilder.append("点击了最新公告:活动专区 跳转 ,");
|
||||||
Intent eventIntent = new Intent(getActivity(), FragmentManagement.class);
|
Intent eventIntent = new Intent(getActivity(), FragmentManagement.class);
|
||||||
eventIntent.putExtra("tag",9);
|
eventIntent.putExtra("tag",9);
|
||||||
startActivity(eventIntent);
|
startActivity(eventIntent);
|
||||||
break;
|
break;
|
||||||
case R.id.linear_end:
|
case R.id.linear_end:
|
||||||
findBuilder.append("点击了帮助中心:能力测评 跳转,");
|
findBuilder.append("点击了帮助中心:能力测评 跳转 ,");
|
||||||
Intent endIntent = new Intent(getActivity(), FragmentManagement.class);
|
Intent endIntent = new Intent(getActivity(), FragmentManagement.class);
|
||||||
endIntent.putExtra("tag", 11);
|
endIntent.putExtra("tag", 11);
|
||||||
startActivity(endIntent);
|
startActivity(endIntent);
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ import java.util.Objects;
|
|||||||
* 记录-已提交
|
* 记录-已提交
|
||||||
*/
|
*/
|
||||||
public class HasSubmitFragment extends BaseFragment implements View.OnClickListener {
|
public class HasSubmitFragment extends BaseFragment implements View.OnClickListener {
|
||||||
|
|
||||||
|
|
||||||
private TextView auditProcess;
|
private TextView auditProcess;
|
||||||
private TextView auditThrough;
|
private TextView auditThrough;
|
||||||
private TextView auditNotThrough;
|
private TextView auditNotThrough;
|
||||||
@@ -67,40 +65,38 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
|
|||||||
|
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
ConstraintLayout clPoi = findViewById(R.id.cl_poi);
|
ConstraintLayout clPoi = findViewById(R.id.cl_poi);
|
||||||
clPoi.setOnClickListener(this);
|
clPoi.setOnClickListener(this);
|
||||||
auditProcess = findViewById(R.id.audit_process);
|
auditProcess = findViewById(R.id.audit_process);
|
||||||
auditThrough = findViewById(R.id.audit_through);
|
auditThrough = findViewById(R.id.audit_through);
|
||||||
auditNotThrough = findViewById(R.id.audit_not_through);
|
auditNotThrough = findViewById(R.id.audit_not_through);
|
||||||
|
|
||||||
ConstraintLayout clRoad = findViewById(R.id.cl_road);
|
ConstraintLayout clRoad = findViewById(R.id.cl_road);
|
||||||
clRoad.setOnClickListener(this);
|
clRoad.setOnClickListener(this);
|
||||||
roadAuditProcess = findViewById(R.id.road_audit_process);
|
roadAuditProcess = findViewById(R.id.road_audit_process);
|
||||||
roadAuditThrough = findViewById(R.id.road_audit_through);
|
roadAuditThrough = findViewById(R.id.road_audit_through);
|
||||||
roadAuditNotThrough = findViewById(R.id.road_audit_not_through);
|
roadAuditNotThrough = findViewById(R.id.road_audit_not_through);
|
||||||
|
|
||||||
ConstraintLayout clCharging = findViewById(R.id.cl_charging);
|
ConstraintLayout clCharging = findViewById(R.id.cl_charging);
|
||||||
clCharging.setOnClickListener(this);
|
clCharging.setOnClickListener(this);
|
||||||
chargingAuditProcess = findViewById(R.id.charging_audit_process);
|
chargingAuditProcess = findViewById(R.id.charging_audit_process);
|
||||||
chargingAuditThrough = findViewById(R.id.charging_audit_through);
|
chargingAuditThrough = findViewById(R.id.charging_audit_through);
|
||||||
chargingAuditNotThrough = findViewById(R.id.charging_audit_not_through);
|
chargingAuditNotThrough = findViewById(R.id.charging_audit_not_through);
|
||||||
|
|
||||||
ConstraintLayout clOther = findViewById(R.id.cl_other);
|
ConstraintLayout clOther = findViewById(R.id.cl_other);
|
||||||
clOther.setOnClickListener(this);
|
clOther.setOnClickListener(this);
|
||||||
otherAuditProcess = findViewById(R.id.other_audit_process);
|
otherAuditProcess = findViewById(R.id.other_audit_process);
|
||||||
otherAuditThrough = findViewById(R.id.other_audit_through);
|
otherAuditThrough = findViewById(R.id.other_audit_through);
|
||||||
otherAuditNotThrough = findViewById(R.id.other_audit_not_through);
|
otherAuditNotThrough = findViewById(R.id.other_audit_not_through);
|
||||||
|
|
||||||
ConstraintLayout clPoiVideo = findViewById(R.id.cl_poiVideo);
|
ConstraintLayout clPoiVideo = findViewById(R.id.cl_poiVideo);
|
||||||
clPoiVideo.setOnClickListener(this);
|
clPoiVideo.setOnClickListener(this);
|
||||||
poiVideoAuditProcess = findViewById(R.id.poiVideo_audit_process);
|
poiVideoAuditProcess = findViewById(R.id.poiVideo_audit_process);
|
||||||
poiVideoAuditThrough = findViewById(R.id.poiVideo_audit_through);
|
poiVideoAuditThrough = findViewById(R.id.poiVideo_audit_through);
|
||||||
poiVideoAuditProcessAbleNotThrough = findViewById(R.id.poiVideo_audit_process_audit_not_through);
|
poiVideoAuditProcessAbleNotThrough = findViewById(R.id.poiVideo_audit_process_audit_not_through);
|
||||||
initRequest();
|
initRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void initRequest() {
|
public void initRequest() {
|
||||||
initPoiSubMitWork();//poi
|
initPoiSubMitWork();//poi
|
||||||
initCaningSubMitWork();//充电站
|
initCaningSubMitWork();//充电站
|
||||||
@@ -109,7 +105,6 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
|
|||||||
initOtherSubMitWork();//其他
|
initOtherSubMitWork();//其他
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void initOtherSubMitWork() {
|
private void initOtherSubMitWork() {
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("type", "5");
|
httpParams.put("type", "5");
|
||||||
@@ -388,4 +383,5 @@ public class HasSubmitFragment extends BaseFragment implements View.OnClickListe
|
|||||||
hasSubmitBuilder.append("\r\n");
|
hasSubmitBuilder.append("\r\n");
|
||||||
FileUtils.writeFile(logFile.getAbsolutePath(), hasSubmitBuilder.toString(), true);
|
FileUtils.writeFile(logFile.getAbsolutePath(), hasSubmitBuilder.toString(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
package com.navinfo.outdoor.fragment;
|
package com.navinfo.outdoor.fragment;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.SharedPreferences;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -11,6 +14,7 @@ import android.widget.Toast;
|
|||||||
import androidx.recyclerview.widget.DividerItemDecoration;
|
import androidx.recyclerview.widget.DividerItemDecoration;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
|
||||||
|
import com.github.lazylibrary.util.FileUtils;
|
||||||
import com.jcodecraeer.xrecyclerview.ProgressStyle;
|
import com.jcodecraeer.xrecyclerview.ProgressStyle;
|
||||||
import com.jcodecraeer.xrecyclerview.XRecyclerView;
|
import com.jcodecraeer.xrecyclerview.XRecyclerView;
|
||||||
import com.lzy.okgo.model.HttpParams;
|
import com.lzy.okgo.model.HttpParams;
|
||||||
@@ -25,6 +29,10 @@ import com.navinfo.outdoor.http.Callback;
|
|||||||
import com.navinfo.outdoor.http.HttpInterface;
|
import com.navinfo.outdoor.http.HttpInterface;
|
||||||
import com.navinfo.outdoor.http.OkGoBuilder;
|
import com.navinfo.outdoor.http.OkGoBuilder;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@@ -35,6 +43,8 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
|
|||||||
|
|
||||||
private MessageAdapter messageAdapter;
|
private MessageAdapter messageAdapter;
|
||||||
private int messagePage = 1;
|
private int messagePage = 1;
|
||||||
|
private File logFile;
|
||||||
|
private StringBuilder messageBuilder;
|
||||||
|
|
||||||
public static MessageFragment newInstance(Bundle bundle) {
|
public static MessageFragment newInstance(Bundle bundle) {
|
||||||
MessageFragment fragment = new MessageFragment();
|
MessageFragment fragment = new MessageFragment();
|
||||||
@@ -67,6 +77,7 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
|
|||||||
messageAdapter.setMessageClickItem(new MessageAdapter.messageClickItem() {
|
messageAdapter.setMessageClickItem(new MessageAdapter.messageClickItem() {
|
||||||
@Override
|
@Override
|
||||||
public void item(int id) {
|
public void item(int id) {
|
||||||
|
messageBuilder.append("点击item ,");
|
||||||
HashMap<String, String> paramMap = new HashMap<>();
|
HashMap<String, String> paramMap = new HashMap<>();
|
||||||
paramMap.put("id",id+"");
|
paramMap.put("id",id+"");
|
||||||
intint2WebActivity(HttpInterface.MSG_CONTENT, paramMap);
|
intint2WebActivity(HttpInterface.MSG_CONTENT, paramMap);
|
||||||
@@ -119,16 +130,62 @@ public class MessageFragment extends BaseFragment implements View.OnClickListen
|
|||||||
protected void initData() {
|
protected void initData() {
|
||||||
super.initData();
|
super.initData();
|
||||||
initNetwork();
|
initNetwork();
|
||||||
|
|
||||||
|
SharedPreferences sharedPreferences = Objects.requireNonNull(getActivity()).getSharedPreferences(Constant.MESSAGE_TYPE, Context.MODE_PRIVATE);
|
||||||
|
SharedPreferences.Editor sharedEdit = sharedPreferences.edit();
|
||||||
|
@SuppressLint("SimpleDateFormat")
|
||||||
|
DateFormat formatter = new SimpleDateFormat("yyyyMMdd");
|
||||||
|
String newFormat = formatter.format(new Date(System.currentTimeMillis()));
|
||||||
|
String pictures_time = sharedPreferences.getString("pictures_time", null);
|
||||||
|
if (pictures_time==null){
|
||||||
|
sharedEdit.putString("pictures_time",newFormat);
|
||||||
|
sharedEdit.apply();
|
||||||
|
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
|
||||||
|
}else {
|
||||||
|
if (pictures_time.equals(newFormat)){
|
||||||
|
logFile = new File(Constant.LOG_FOLDER + "/" + pictures_time + ".txt");
|
||||||
|
}else {
|
||||||
|
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
messageBuilder = new StringBuilder();
|
||||||
|
messageBuilder.append("MessageFragment-onCreate-initData ,");
|
||||||
|
if (Constant.USHERED!=null){
|
||||||
|
messageBuilder.append("userId:").append(Constant.USHERED).append(",");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
switch (v.getId()) {
|
switch (v.getId()) {
|
||||||
case R.id.message_final:
|
case R.id.message_final:
|
||||||
|
messageBuilder.append("点击返回,");
|
||||||
Objects.requireNonNull(getActivity()).finish();
|
Objects.requireNonNull(getActivity()).finish();
|
||||||
break;
|
break;
|
||||||
case R.id.tv_read:
|
case R.id.tv_read:
|
||||||
|
messageBuilder.append("点击全部领取,");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
messageBuilder.append("onPause ,");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStop() {
|
||||||
|
super.onStop();
|
||||||
|
messageBuilder.append("onStop ,");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
messageBuilder.append("onDestroy");
|
||||||
|
messageBuilder.append("\r\n");
|
||||||
|
FileUtils.writeFile(logFile.getAbsolutePath(), messageBuilder.toString(), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -357,6 +357,7 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
|
|||||||
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
|
logFile = new File(Constant.LOG_FOLDER + "/" + newFormat + ".txt");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
otherBuilder = new StringBuilder();
|
otherBuilder = new StringBuilder();
|
||||||
otherBuilder.append("OtherActivity-onCreate-initData ,");
|
otherBuilder.append("OtherActivity-onCreate-initData ,");
|
||||||
if (Constant.USHERED!=null){
|
if (Constant.USHERED!=null){
|
||||||
@@ -389,7 +390,7 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
|
|||||||
latLng = latLineString.get(0);
|
latLng = latLineString.get(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
BitmapDescriptor otherDescriptor = Constant.MARKER_OTHER_SHOW;
|
BitmapDescriptor otherDescriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_show);
|
||||||
markerOther = tencentMap.addMarker(new MarkerOptions(latLng).icon(otherDescriptor).anchor(0.5f, 1.0f));
|
markerOther = tencentMap.addMarker(new MarkerOptions(latLng).icon(otherDescriptor).anchor(0.5f, 1.0f));
|
||||||
markerOther.setZIndex(4);
|
markerOther.setZIndex(4);
|
||||||
moveLatlng(latLng, null);
|
moveLatlng(latLng, null);
|
||||||
@@ -400,7 +401,7 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
|
|||||||
latLng = new LatLng();
|
latLng = new LatLng();
|
||||||
latLng.setLongitude(Double.parseDouble(x));
|
latLng.setLongitude(Double.parseDouble(x));
|
||||||
latLng.setLatitude(Double.parseDouble(y));
|
latLng.setLatitude(Double.parseDouble(y));
|
||||||
BitmapDescriptor otherDescriptor = Constant.MARKER_OTHER_SHOW;
|
BitmapDescriptor otherDescriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_show);
|
||||||
markerOther = tencentMap.addMarker(new MarkerOptions(latLng).icon(otherDescriptor).anchor(0.5f, 1.0f));
|
markerOther = tencentMap.addMarker(new MarkerOptions(latLng).icon(otherDescriptor).anchor(0.5f, 1.0f));
|
||||||
markerOther.setZIndex(4);
|
markerOther.setZIndex(4);
|
||||||
moveLatlng(latLng, null);
|
moveLatlng(latLng, null);
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ public class PoiTaskFragment extends BaseFragment implements View.OnClickListene
|
|||||||
page = 1;
|
page = 1;
|
||||||
initWork(type,true);
|
initWork(type,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadMore() {
|
public void onLoadMore() {
|
||||||
initWork(type,false);
|
initWork(type,false);
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
|
|||||||
private File logFile;
|
private File logFile;
|
||||||
private StringBuilder poiVideoBuilder;
|
private StringBuilder poiVideoBuilder;
|
||||||
|
|
||||||
|
|
||||||
public static PoiVideoFragment newInstance(Bundle bundle) {
|
public static PoiVideoFragment newInstance(Bundle bundle) {
|
||||||
PoiVideoFragment fragment = new PoiVideoFragment();
|
PoiVideoFragment fragment = new PoiVideoFragment();
|
||||||
fragment.setArguments(bundle);
|
fragment.setArguments(bundle);
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package com.navinfo.outdoor.http;
|
|||||||
import com.navinfo.outdoor.api.Constant;
|
import com.navinfo.outdoor.api.Constant;
|
||||||
|
|
||||||
public class HttpInterface {
|
public class HttpInterface {
|
||||||
public static final String IP_= "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
|
public static final String IP = "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
|
||||||
public static final String IP= "http://dtxbmaps.navinfo.com/dtxb_test/m4";//测试接口
|
public static final String IP_= "http://dtxbmaps.navinfo.com/dtxb_test/m4";//测试接口
|
||||||
|
|
||||||
public static final String USER_PATH ="/user/";//我的
|
public static final String USER_PATH ="/user/";//我的
|
||||||
public static final String MSG_LIST_PATH ="/msgList/";//发现
|
public static final String MSG_LIST_PATH ="/msgList/";//发现
|
||||||
|
|||||||
Reference in New Issue
Block a user