|
@ -1241,7 +1241,7 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
|
1241
|
1241
|
windowLabelPublic = findViewById(R.id.iv_label_public);
|
1242
|
1242
|
windowLabelGround = findViewById(R.id.iv_label_ground);
|
1243
|
1243
|
windowLabelFreePark = findViewById(R.id.iv_label_free_park);
|
1244
|
|
windowChat = findViewById(R.id.iv_chat);
|
|
1244
|
// windowChat = findViewById(R.id.iv_chat);
|
1245
|
1245
|
|
1246
|
1246
|
windowGo = (RelativeLayout) findViewById(R.id.window_rl_go);
|
1247
|
1247
|
windowZhanDetails = (RelativeLayout) findViewById(R.id.window_rl_zhan_details);
|
|
@ -1336,51 +1336,51 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
|
1336
|
1336
|
}
|
1337
|
1337
|
});
|
1338
|
1338
|
|
1339
|
|
// add by hyg 点击跳转到聊聊
|
1340
|
|
windowChat.setOnClickListener(new View.OnClickListener() {
|
1341
|
|
@Override
|
1342
|
|
public void onClick(View view) {
|
1343
|
|
if (socket != null) {
|
1344
|
|
try {
|
1345
|
|
socket.close();
|
1346
|
|
} catch (IOException e) {
|
1347
|
|
e.printStackTrace();
|
1348
|
|
}
|
1349
|
|
}
|
1350
|
|
MobclickAgent.onEvent(getApplicationContext(), "1121");
|
1351
|
|
Intent i = new Intent(getApplication(), ChatActivity.class);//聊聊页面
|
1352
|
|
i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
|
1353
|
|
startActivity(i);
|
1354
|
|
overridePendingTransition(0, 0);
|
1355
|
|
if (count == 1) {
|
1356
|
|
|
1357
|
|
count = 2;
|
1358
|
|
}
|
1359
|
|
MobclickAgent.onEvent(getApplicationContext(), "0999");
|
1360
|
|
windowLayout.setVisibility(View.GONE);
|
1361
|
|
|
1362
|
|
|
1363
|
|
rl_control.setVisibility(View.VISIBLE);
|
1364
|
|
if (nMarker != null) {
|
1365
|
|
nMarker.hideInfoWindow();
|
1366
|
|
MarkerOptions markerOptionss = new MarkerOptions();
|
1367
|
|
if (current_chargePoint.getOwn_pay().equals("1")) {
|
1368
|
|
nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker1));
|
1369
|
|
} else {
|
1370
|
|
if (current_chargePoint.getSuit_car().equals("特斯拉")) {
|
1371
|
|
nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker3));
|
1372
|
|
} else {
|
1373
|
|
if (WelcomeActivity.canCost.contains(current_chargePoint.getSupplier())) {
|
1374
|
|
nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker2));
|
1375
|
|
} else {
|
1376
|
|
nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker3));
|
1377
|
|
}
|
1378
|
|
}
|
1379
|
|
}
|
1380
|
|
}
|
1381
|
|
|
1382
|
|
}
|
1383
|
|
});
|
|
1339
|
// add by hyg 点击跳转到聊聊 隐藏该功能
|
|
1340
|
// windowChat.setOnClickListener(new View.OnClickListener() {
|
|
1341
|
// @Override
|
|
1342
|
// public void onClick(View view) {
|
|
1343
|
// if (socket != null) {
|
|
1344
|
// try {
|
|
1345
|
// socket.close();
|
|
1346
|
// } catch (IOException e) {
|
|
1347
|
// e.printStackTrace();
|
|
1348
|
// }
|
|
1349
|
// }
|
|
1350
|
// MobclickAgent.onEvent(getApplicationContext(), "1121");
|
|
1351
|
// Intent i = new Intent(getApplication(), ChatActivity.class);//聊聊页面
|
|
1352
|
// i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
|
|
1353
|
// startActivity(i);
|
|
1354
|
// overridePendingTransition(0, 0);
|
|
1355
|
// if (count == 1) {
|
|
1356
|
//
|
|
1357
|
// count = 2;
|
|
1358
|
// }
|
|
1359
|
// MobclickAgent.onEvent(getApplicationContext(), "0999");
|
|
1360
|
// windowLayout.setVisibility(View.GONE);
|
|
1361
|
//
|
|
1362
|
//
|
|
1363
|
// rl_control.setVisibility(View.VISIBLE);
|
|
1364
|
// if (nMarker != null) {
|
|
1365
|
// nMarker.hideInfoWindow();
|
|
1366
|
// MarkerOptions markerOptionss = new MarkerOptions();
|
|
1367
|
// if (current_chargePoint.getOwn_pay().equals("1")) {
|
|
1368
|
// nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker1));
|
|
1369
|
// } else {
|
|
1370
|
// if (current_chargePoint.getSuit_car().equals("特斯拉")) {
|
|
1371
|
// nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker3));
|
|
1372
|
// } else {
|
|
1373
|
// if (WelcomeActivity.canCost.contains(current_chargePoint.getSupplier())) {
|
|
1374
|
// nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker2));
|
|
1375
|
// } else {
|
|
1376
|
// nMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.icon_newmarker3));
|
|
1377
|
// }
|
|
1378
|
// }
|
|
1379
|
// }
|
|
1380
|
// }
|
|
1381
|
//
|
|
1382
|
// }
|
|
1383
|
// });
|
1384
|
1384
|
|
1385
|
1385
|
|
1386
|
1386
|
tv_sortDistance = (TextView) findViewById(R.id.tv_sortDistance);
|