8.6
liugl
2020-08-06 a0b3598842d57f5dfb5736e8a4fff5a9d70191a5
app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java
@@ -95,20 +95,20 @@
    }
    Handler heartHandler;
//    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,2000);
//        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);
    }
@@ -140,14 +140,6 @@
    }
    public void showOrder(String orderId, String orderType) {
//        Bundle bundle = creatBundleString("orderId", orderId);
//        bundle.putString("orderType", orderType);
        Intent intent = new Intent(this, SlabGetOrderFragment.class);
        intent.putExtra("orderId",orderId);
        intent.putExtra("orderType",orderType);
        startActivity(intent);
    }
    public void toDorderAct(String orderId, String orderType){
        Intent intent = new Intent(this, SlabTripActivity.class);
@@ -164,8 +156,6 @@
     * @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);