From 6bed01a5a2468cd389d4e483dbeb90347b701310 Mon Sep 17 00:00:00 2001 From: 唐浩 <15928265276@163.com> Date: 星期六, 18 七月 2020 15:31:42 +0800 Subject: [PATCH] commit --- app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java | 43 +++++++++++++++++++++++++++++++------------ 1 files changed, 31 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java b/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java index f1ba686..96bc3c5 100644 --- a/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java +++ b/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java @@ -28,6 +28,7 @@ import com.okgoincar.R; import com.okgoincar.base.BaseEvent; +import com.okgoincar.base.MyApplication; import com.okgoincar.slab.util.DialogUtil; import com.github.zackratos.ultimatebar.UltimateBar; import com.google.gson.Gson; @@ -96,18 +97,18 @@ Handler heartHandler; private void settest() { -// tv_test.setVisibility(VISIBLE); -// if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ -// tv_test.setText( -// "定位位置:lat="+MyApplication.Companion.getLocation().getLatitude()+" lng="+MyApplication.Companion.getLocation().getLongitude() -// + " 心跳数量()="+MyApplication.Companion.getTestHeartNunm()+" 收到的websocket数量="+MyApplication.Companion.getTestReceiveNum() -// +" 方向角="+MyApplication.Companion.getLocation().getBearing()+" 海拔"+MyApplication.Companion.getLocation().getAltitude() -// ); -// } -// if (heartHandler == null) { -// heartHandler = new Handler(getMainLooper()); -// } -// heartHandler.postDelayed(this::settest,1000); + tv_test.setVisibility(VISIBLE); + if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ + tv_test.setText( + "定位位置:lat="+MyApplication.Companion.getLocation().getLatitude()+" lng="+MyApplication.Companion.getLocation().getLongitude() + + " 心跳数量()="+MyApplication.Companion.getTestHeartNunm()+" 收到的websocket数量="+MyApplication.Companion.getTestReceiveNum() + +" 方向角="+MyApplication.Companion.getLocation().getBearing()+" 海拔"+MyApplication.Companion.getLocation().getAltitude() + ); + } + if (heartHandler == null) { + heartHandler = new Handler(getMainLooper()); + } + heartHandler.postDelayed(this::settest,2000); } @@ -155,6 +156,24 @@ startActivity(intent); } + /*** + * type 1:普通单 2:该派单 + * @param orderId + * @param orderType + * @param time + * @param type + */ + public void showOrder(String orderId, String orderType,int time,int type) { +// Bundle bundle = creatBundleString("orderId", orderId); +// bundle.putString("orderType", orderType); + Intent intent = new Intent(this,SlabGetOrderFragment.class); + intent.putExtra("orderId",orderId); + intent.putExtra("orderType",orderType); + intent.putExtra("time",time); + intent.putExtra("type",type); + startActivity(intent); + } + @Override -- Gitblit v1.7.1