|
|
@@ -133,7 +133,22 @@ public class BarcodeInfoCollectFragment extends BaseFragment {
|
|
|
LocationischeckData();
|
|
|
}
|
|
|
});
|
|
|
+ mLocationEditText.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ mLocationEditText.setText("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ mLocationEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {
|
|
|
+ @Override
|
|
|
+ public void onFocusChange(View v, boolean hasFocus) {
|
|
|
+ if (hasFocus){
|
|
|
+ mLocationEditText.setText("");
|
|
|
+ }else {
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
String ischecheds = SharedPreUtil.getString(mActivity, Constants.BARCODECHECKBOX, null);
|
|
|
if (StringUtil.isEmpty(ischecheds)){
|
|
|
checkbox_barcode.setChecked(true);
|
|
|
@@ -179,7 +194,10 @@ public class BarcodeInfoCollectFragment extends BaseFragment {
|
|
|
mLotEditText.setText(null);
|
|
|
mDateEditText.setText(null);
|
|
|
material_in_collect_old_et.setText(null);
|
|
|
- mLocationEditText.setText(null);
|
|
|
+ if (location_check.isChecked()){
|
|
|
+ mLocationEditText.setText(null);
|
|
|
+ }
|
|
|
+
|
|
|
// mLocationEditText.setEnabled(false);
|
|
|
}
|
|
|
}
|