修改定位上的bug
This commit is contained in:
parent
23c6ff16b7
commit
c2ffd60060
@ -194,12 +194,10 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
|
||||
chargingPileDao = poiDatabase.getChargingPileDao();
|
||||
checkBoxLife = findViewById(R.id.check_pot_life);
|
||||
checkBoxRight = findViewById(R.id.check_pot_right);
|
||||
checkBoxLife.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
checkBoxLife.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
if (isChecked) {
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
public void onClick(View v) {
|
||||
if(checkBoxLife.isChecked()){
|
||||
moveLatlng(latLng, new TencentMap.CancelableCallback() {
|
||||
@Override
|
||||
public void onFinish() {
|
||||
@ -208,19 +206,25 @@ public class ChargingPileFragment extends BaseDrawerFragment implements View.OnC
|
||||
if (markerPile != null) {
|
||||
markerPile.setFixingPoint(screenPilePositions.x, screenPilePositions.y);
|
||||
}
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
checkBoxLife.setChecked(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
}else {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
latLng = tencentMap.getProjection().fromScreenLocation(screenPilePositions);
|
||||
markerPile.setPosition(latLng);
|
||||
markerPile.setFixingPointEnable(false);
|
||||
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -277,13 +277,10 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
|
||||
EventBus.getDefault().post(obtain);
|
||||
}
|
||||
});
|
||||
|
||||
checkBoxLife.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
checkBoxLife.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
if (isChecked) {
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
public void onClick(View v) {
|
||||
if(checkBoxLife.isChecked()){
|
||||
moveLatlng(latLng, new TencentMap.CancelableCallback() {
|
||||
@Override
|
||||
public void onFinish() {
|
||||
@ -292,20 +289,26 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
|
||||
if (markerStation != null) {
|
||||
markerStation.setFixingPoint(screenStationPositions.x, screenStationPositions.y);
|
||||
}
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
checkBoxLife.setChecked(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
}else {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
latLng = tencentMap.getProjection().fromScreenLocation(screenStationPositions);
|
||||
markerStation.setPosition(latLng);
|
||||
markerStation.setFixingPointEnable(false);
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
checkBoxRight.setVisibility(View.GONE);
|
||||
|
@ -191,12 +191,10 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
|
||||
}
|
||||
});
|
||||
checkPot = findViewById(R.id.check_pot);
|
||||
checkPot.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
checkPot.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
if (isChecked) {
|
||||
checkPot.setText("保存");
|
||||
checkPot.setTextColor(Color.WHITE);
|
||||
public void onClick(View v) {
|
||||
if(checkPot.isChecked()){
|
||||
moveLatlng(latLng, new TencentMap.CancelableCallback() {
|
||||
@Override
|
||||
public void onFinish() {
|
||||
@ -205,18 +203,25 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
|
||||
if (markerOther != null) {
|
||||
markerOther.setFixingPoint(screenOtherPositions.x, screenOtherPositions.y);
|
||||
}
|
||||
checkPot.setText("保存");
|
||||
checkPot.setTextColor(Color.WHITE);
|
||||
checkPot.setChecked(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
checkPot.setText("编辑");
|
||||
checkPot.setTextColor(Color.BLACK);
|
||||
checkPot.setChecked(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
}else {
|
||||
checkPot.setText("编辑");
|
||||
checkPot.setTextColor(Color.BLACK);
|
||||
latLng = tencentMap.getProjection().fromScreenLocation(screenOtherPositions);
|
||||
markerOther.setPosition(latLng);
|
||||
markerOther.setFixingPointEnable(false);
|
||||
checkPot.setChecked(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -177,12 +177,10 @@ public class PoiFragment extends BaseDrawerFragment implements View.OnClickListe
|
||||
poiDao = poiDatabase.getPoiDao();
|
||||
checkBoxLife = findViewById(R.id.check_pot_life);
|
||||
checkBoxRight = findViewById(R.id.check_pot_right);
|
||||
checkBoxLife.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
checkBoxLife.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
if (isChecked) {
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
public void onClick(View v) {
|
||||
if(checkBoxLife.isChecked()){
|
||||
moveLatlng(latLng, new TencentMap.CancelableCallback() {
|
||||
@Override
|
||||
public void onFinish() {
|
||||
@ -191,22 +189,29 @@ public class PoiFragment extends BaseDrawerFragment implements View.OnClickListe
|
||||
if (markerPoi != null) {
|
||||
markerPoi.setFixingPoint(screenPoiPositions.x, screenPoiPositions.y);
|
||||
}
|
||||
checkBoxLife.setText("保存");
|
||||
checkBoxLife.setTextColor(Color.WHITE);
|
||||
checkBoxLife.setChecked(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
}else {
|
||||
checkBoxLife.setText("编辑");
|
||||
checkBoxLife.setTextColor(Color.BLACK);
|
||||
latLng = tencentMap.getProjection().fromScreenLocation(screenPoiPositions);
|
||||
markerPoi.setPosition(latLng);
|
||||
markerPoi.setFixingPointEnable(false);
|
||||
checkBoxLife.setChecked(false);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
setSlidingUpPanelLayout(Constant.SLIDING_LAYOUT);
|
||||
nestedScrollView = findViewById(R.id.nested_scroll_view);
|
||||
if (slidingPaneLayout != null) {
|
||||
|
@ -175,8 +175,8 @@ public class WithdrawFragment extends BaseFragment implements View.OnClickListen
|
||||
case R.id.button:
|
||||
String price = etAllPrice.getText().toString().trim();
|
||||
if (price!=null&&!price.equals("")){
|
||||
Integer integer = Integer.valueOf(price);
|
||||
if (integer!=null&&integer<10){
|
||||
double aDouble = Double.valueOf(price);
|
||||
if (aDouble<10){
|
||||
Toast.makeText(getActivity(), "提现金额不能低于10元", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user