Browse Source

Update MainMapActivity.java

空异常处理
huyuguo 3 years ago
parent
commit
73124baf8e

+ 4 - 0
app/src/main/java/com/electric/chargingpile/activity/MainMapActivity.java

2251
        switch (v.getId()) {
2251
        switch (v.getId()) {
2252
            case R.id.iv_tuijian:
2252
            case R.id.iv_tuijian:
2253
                if (hasLocationPermission()) {
2253
                if (hasLocationPermission()) {
2254
                    if (center == null) {
2255
                        Toast.makeText(getApplication(), "没有定位到您的当前位置,请稍后重试", Toast.LENGTH_SHORT).show();
2256
                        return;
2257
                    }
2254
                    MobclickAgent.onEvent(getApplicationContext(), "0111");
2258
                    MobclickAgent.onEvent(getApplicationContext(), "0111");
2255
                    Intent i = new Intent(getApplicationContext(), RecommendZhanActivity.class);
2259
                    Intent i = new Intent(getApplicationContext(), RecommendZhanActivity.class);
2256
                    i.putExtra("center_jing", String.valueOf(center.longitude));
2260
                    i.putExtra("center_jing", String.valueOf(center.longitude));