8.7
liugl
2020-08-07 a926b50fb8fd8995cdb5c10ec07dafcff888183b
app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt
@@ -140,7 +140,7 @@
            tv_current_time.text = DateUtil.getTime(
                DateUtil.TYPE7,
                System.currentTimeMillis()
            ) + "\n" + DateUtil.getWeek(System.currentTimeMillis())
            ) + DateUtil.getWeek(System.currentTimeMillis())
        }
    }
@@ -203,7 +203,6 @@
        }
        tv_name.clickDelay {
            toast("点亮网约")
        }
        tv_car_num.clickDelay {
@@ -224,6 +223,7 @@
        }
        tv_title_top.clickDelay {
        }
        view_mode.clickDelay {
@@ -232,10 +232,12 @@
                CacheKey.putKeyStr("date_mode", System.currentTimeMillis().toString())
                CacheKey.putKeyStr("mode_now_time", "1")//记录为点击切换的颜色 1 白色 2 黑色
                setBlackMode(false)
                mainFragment.adapter.notifyDataSetChanged()
            } else {
                CacheKey.putKeyStr("date_mode", System.currentTimeMillis().toString())
                CacheKey.putKeyStr("mode_now_time", "2")
                setBlackMode(true)
                mainFragment.adapter.notifyDataSetChanged()
            }
@@ -299,16 +301,16 @@
    override fun onLocationChanged(p0: AMapLocation?) {
        if (p0 == null) {
            toast("高德位置是空的")
//            toast("高德位置是空的")
            return
        }
        if (p0.errorCode == 0) {
            toast("定位成功")
//            toast("定位成功")
            MyApplication.aMapLocation = p0
            CacheKey.putKeyStr("location", Gson().toJson(p0))
        } else {
            p0.let {
                toast("定位失败" + it.errorCode.toString())
//                toast("定位失败" + it.errorCode.toString())
            }
        }
    }