|
|
@@ -0,0 +1,429 @@
|
|
|
+package com.uas.keg_wms_new.fragment;
|
|
|
+
|
|
|
+import android.app.Activity;
|
|
|
+import android.content.DialogInterface;
|
|
|
+import android.content.Intent;
|
|
|
+import android.graphics.Color;
|
|
|
+import android.graphics.drawable.BitmapDrawable;
|
|
|
+import android.support.v4.app.Fragment;
|
|
|
+import android.support.v7.app.AlertDialog;
|
|
|
+import android.text.TextUtils;
|
|
|
+import android.view.KeyEvent;
|
|
|
+import android.view.View;
|
|
|
+import android.widget.Button;
|
|
|
+import android.widget.CheckBox;
|
|
|
+import android.widget.ImageView;
|
|
|
+import android.widget.LinearLayout;
|
|
|
+import android.widget.PopupWindow;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.android.volley.Request;
|
|
|
+import com.uas.keg_wms_new.R;
|
|
|
+import com.uas.keg_wms_new.activity.FunctionActivity;
|
|
|
+import com.uas.keg_wms_new.global.GloableParams;
|
|
|
+import com.uas.keg_wms_new.listener.MyEditorActionListener;
|
|
|
+import com.uas.keg_wms_new.tools.SharedPreUtil;
|
|
|
+import com.uas.keg_wms_new.util.CameraUtil;
|
|
|
+import com.uas.keg_wms_new.util.CommonUtil;
|
|
|
+import com.uas.keg_wms_new.util.FastjsonUtil;
|
|
|
+import com.uas.keg_wms_new.util.FragmentUtils;
|
|
|
+import com.uas.keg_wms_new.util.HttpCallback;
|
|
|
+import com.uas.keg_wms_new.util.HttpParams;
|
|
|
+import com.uas.keg_wms_new.util.VolleyRequest;
|
|
|
+import com.uas.keg_wms_new.view.ClearableEditText;
|
|
|
+import com.uuzuche.lib_zxing.activity.CaptureActivity;
|
|
|
+import com.uuzuche.lib_zxing.activity.CodeUtils;
|
|
|
+
|
|
|
+public class FreeListingFragment extends BaseFragment {
|
|
|
+ private static final int SCAN_BARCODE_CODE = 101;
|
|
|
+ private ClearableEditText mBarcodeEditText,cet_material_rack;
|
|
|
+ private CheckBox cb_free_listing;
|
|
|
+ private Button mConfirmButton;
|
|
|
+ private TextView mResultTextView;
|
|
|
+ private ImageView mScanImageView;
|
|
|
+ private int mFocusId;
|
|
|
+ private String mBarCode;
|
|
|
+ private org.json.JSONObject jsonObject;
|
|
|
+ private Button btn_kill;
|
|
|
+ private Button mMenuButton;
|
|
|
+ private LinearLayout ll_shangjia,ll_end_data;
|
|
|
+ private PopupWindow mMenuPopupWindow;
|
|
|
+ private Fragment mFragment;
|
|
|
+ private TextView tv_liaojia,tv_barcode_tailback,tv_liaohao,tv_barremain,tv_name,
|
|
|
+ tv_guige,tv_wuliaomorencangku,tv_current_position,tv_aready_stored_in_storage_space,tv_end_data;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected int getLayout() {
|
|
|
+ return R.layout.fragment_free_listing;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initViews() {
|
|
|
+ FunctionActivity.setTitle(getResources().getString(R.string.free_listing));
|
|
|
+ ((FunctionActivity) getActivity()).setMoreBtnVisible(true);
|
|
|
+ mMenuButton = (Button) mActivity.findViewById(R.id.btn_actionbar_more);
|
|
|
+ mScanImageView = (ImageView) mActivity.findViewById(R.id.btn_actionbar_scan_iv);
|
|
|
+ mBarcodeEditText = root.findViewById(R.id.barcode_info_collect_barcode_et);
|
|
|
+ mConfirmButton = root.findViewById(R.id.barcode_info_collect_confirm_btn);
|
|
|
+ mResultTextView = root.findViewById(R.id.barcode_info_collect_result_tv);
|
|
|
+ cet_material_rack = (ClearableEditText) root.findViewById(R.id.cet_material_rack);
|
|
|
+ cb_free_listing = (CheckBox) root.findViewById(R.id.cb_free_listing);
|
|
|
+ ll_shangjia = root.findViewById(R.id.ll_shangjia);
|
|
|
+ tv_liaojia = root.findViewById(R.id.tv_liaojia);
|
|
|
+ tv_barcode_tailback = root.findViewById(R.id.tv_barcode_tailback);
|
|
|
+ tv_liaohao = root.findViewById(R.id.tv_liaohao);
|
|
|
+ tv_barremain = root.findViewById(R.id.tv_barremain);
|
|
|
+ tv_name = root.findViewById(R.id.tv_name);
|
|
|
+ tv_guige = root.findViewById(R.id.tv_guige);
|
|
|
+ tv_wuliaomorencangku = root.findViewById(R.id.tv_wuliaomorencangku);
|
|
|
+ tv_current_position = root.findViewById(R.id.tv_current_position);
|
|
|
+ tv_aready_stored_in_storage_space = root.findViewById(R.id.tv_aready_stored_in_storage_space);
|
|
|
+ ll_end_data = root.findViewById(R.id.ll_end_data);
|
|
|
+ tv_end_data = root.findViewById(R.id.tv_end_data);
|
|
|
+
|
|
|
+ btn_kill = mActivity.findViewById(R.id.btn_kill);
|
|
|
+
|
|
|
+ cet_material_rack.requestFocus();
|
|
|
+ jsonObject=new org.json.JSONObject();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initEvents() {
|
|
|
+ //料架回车
|
|
|
+ CommonUtil.setEditorActionListener(cet_material_rack, new MyEditorActionListener() {
|
|
|
+ @Override
|
|
|
+ public void MyEditorAction(String text, int actionId, KeyEvent event) {
|
|
|
+ if (!text.isEmpty()&&!cet_material_rack.getText().toString().isEmpty()){
|
|
|
+ materialRackCode();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //条码回车
|
|
|
+ CommonUtil.setEditorActionListener(mBarcodeEditText, new MyEditorActionListener() {
|
|
|
+ @Override
|
|
|
+ public void MyEditorAction(String text, int actionId, KeyEvent event) {
|
|
|
+ try{
|
|
|
+ if (!TextUtils.isEmpty(cet_material_rack.getText().toString().trim())
|
|
|
+ && !TextUtils.isEmpty(mBarcodeEditText.getText().toString().trim())
|
|
|
+ ){
|
|
|
+ getBarAcceptCode(mBarcodeEditText.getText().toString().trim(),cet_material_rack.getText().toString().trim());
|
|
|
+ }
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ mConfirmButton.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ getBarAcceptCode(mBarcodeEditText.getText().toString().trim(),cet_material_rack.getText().toString().trim());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ btn_kill.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ String userName = SharedPreUtil.getString(mActivity, SharedPreUtil.KEY_USERNAME, "");
|
|
|
+ new AlertDialog.Builder(getActivity()).setTitle("提示")
|
|
|
+ .setMessage("是否结束(" + userName + ")的所有进行中的上架任务?")
|
|
|
+ .setPositiveButton("是", new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ dialog.dismiss();
|
|
|
+ savekillAcceptCode("");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .setNegativeButton("否", new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ dialog.dismiss();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .show();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ mScanImageView.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ if (CameraUtil.hasCamera()) {
|
|
|
+ if (root.findFocus() != null) {
|
|
|
+ mFocusId = root.findFocus().getId();
|
|
|
+ Intent intent = new Intent();
|
|
|
+ intent.setClass(mActivity, CaptureActivity.class);
|
|
|
+ startActivityForResult(intent, SCAN_BARCODE_CODE);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, getString(R.string.no_camera_detected));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ initPopupWindow();
|
|
|
+ mMenuButton.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ CommonUtil.setBackgroundAlpha(getActivity(), 0.5f);
|
|
|
+ mMenuPopupWindow.showAsDropDown(mMenuButton);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ private void materialRackCode() {
|
|
|
+ String materialRack = cet_material_rack.getText().toString().trim();
|
|
|
+ if (TextUtils.isEmpty(materialRack)) {
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, getResources().getString(R.string.Please_enter_the_material_rack));
|
|
|
+ cet_material_rack.requestFocus();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ progressDialog.show();
|
|
|
+ VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
+ .url(GloableParams.ADDRESS_CHECK_SHELF)
|
|
|
+ .method(Request.Method.GET)
|
|
|
+ .addParam("shcode",materialRack)
|
|
|
+ .build(), new HttpCallback() {
|
|
|
+ @Override
|
|
|
+ public void onSuccess(int flag, Object o) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ org.json.JSONObject resultObject = new org.json.JSONObject(o.toString());
|
|
|
+ mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ ll_shangjia.setVisibility(View.GONE);
|
|
|
+ ll_end_data.setVisibility(View.GONE);
|
|
|
+ if (resultObject.optBoolean("success")) {
|
|
|
+ mResultTextView.setTextColor(getResources().getColor(R.color.blue));
|
|
|
+ mResultTextView.setText(getResources().getText(R.string.Shelf_validation_successful));
|
|
|
+ if (!cb_free_listing.isChecked()){
|
|
|
+ cet_material_rack.setText("");
|
|
|
+ }
|
|
|
+ //mBarcodeEditText.setText("");
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
+ }else {
|
|
|
+ mResultTextView.setTextColor(getResources().getColor(R.color.red));
|
|
|
+ mResultTextView.setText(resultObject.getString("message"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFail(int flag, String failStr) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
+ cet_material_rack.setText(null);
|
|
|
+ cet_material_rack.requestFocus();
|
|
|
+ mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ mResultTextView.setTextColor(getResources().getColor(R.color.red));
|
|
|
+ mResultTextView.setText(failStr);
|
|
|
+ ll_shangjia.setVisibility(View.GONE);
|
|
|
+ ll_end_data.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ private void initPopupWindow() {
|
|
|
+ View view = View.inflate(getActivity(), R.layout.pop_storage_recharge_menu, null);
|
|
|
+
|
|
|
+ Button doneButton = (Button) view.findViewById(R.id.pop_storage_recharge_menu_1);
|
|
|
+ Button todoButton = (Button) view.findViewById(R.id.pop_storage_recharge_menu_2);
|
|
|
+ doneButton.setText("上架任务查询");
|
|
|
+ todoButton.setVisibility(View.GONE);
|
|
|
+ mFragment = new PositionInquiryFragment();
|
|
|
+
|
|
|
+ doneButton.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ closeMenuPopupWindow();
|
|
|
+// Bundle bundle = new Bundle();
|
|
|
+// bundle.putString(Constants.FLAG.FLAG_RECHARGE_CALLER, "AcceptNotify!Have");
|
|
|
+// mFragment.setArguments(bundle);
|
|
|
+ FragmentUtils.switchFragment(FreeListingFragment.this, mFragment);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ mMenuPopupWindow = new PopupWindow(view, LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
|
+ mMenuPopupWindow.setBackgroundDrawable(new BitmapDrawable());
|
|
|
+ mMenuPopupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
|
|
|
+ @Override
|
|
|
+ public void onDismiss() {
|
|
|
+ closeMenuPopupWindow();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ private void closeMenuPopupWindow() {
|
|
|
+ if (mMenuPopupWindow != null) {
|
|
|
+ mMenuPopupWindow.dismiss();
|
|
|
+ CommonUtil.setBackgroundAlpha(mActivity, 1f);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ protected void initDatas() { ;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private void getBarAcceptCode(String barcode,String shcode) {
|
|
|
+ if (TextUtils.isEmpty(barcode)){
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, getResources().getString(R.string.Please_enter_the_barcode_number));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (TextUtils.isEmpty(shcode)){
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, getResources().getString(R.string.Please_enter_the_material_rack));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ progressDialog.show();
|
|
|
+ try {
|
|
|
+ VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
+ .url(GloableParams.ADDRESS_FREE_SMART_START)
|
|
|
+ .method(Request.Method.GET)
|
|
|
+ .addParam("shcode", barcode)
|
|
|
+ .addParam("barcode", barcode)
|
|
|
+ .build(), new HttpCallback() {
|
|
|
+ @Override
|
|
|
+ public void onSuccess(int flag, Object o) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ org.json.JSONObject resultObject = new org.json.JSONObject(o.toString());
|
|
|
+ if (resultObject.optBoolean("success")) {
|
|
|
+ cet_material_rack.requestFocus();
|
|
|
+ cet_material_rack.setSelection(cet_material_rack.getText().length());
|
|
|
+ ll_shangjia.setVisibility(View.VISIBLE);
|
|
|
+ ll_end_data.setVisibility(View.GONE);
|
|
|
+
|
|
|
+ JSONObject dataObject = FastjsonUtil.getJSONObject(o.toString(),"data");
|
|
|
+ String BAR_PRODCODE = dataObject.getString("BAR_PRODCODE") == null ? "" : dataObject.getString("BAR_PRODCODE");
|
|
|
+ String PR_DETAIL = dataObject.getString("PR_DETAIL") == null ? "" : dataObject.getString("PR_DETAIL");
|
|
|
+ String PR_SPEC = dataObject.getString("PR_SPEC") == null ? "" : dataObject.getString("PR_SPEC");
|
|
|
+ String PR_ORISPECCODE = dataObject.getString("PR_ORISPECCODE") == null ? "" : dataObject.getString("PR_ORISPECCODE");
|
|
|
+ String BAR_LOCATION = dataObject.getString("BAR_LOCATION") == null ? "" : dataObject.getString("BAR_LOCATION");
|
|
|
+ String BAR_CODE = dataObject.getString("BAR_CODE") == null ? "" : dataObject.getString("BAR_CODE");
|
|
|
+ String BAR_REMAIN = dataObject.getString("BAR_REMAIN") == null ? "" : dataObject.getString("BAR_REMAIN");
|
|
|
+ String BAR_WHCODE = dataObject.getString("BAR_WHCODE") == null ? "" : dataObject.getString("BAR_WHCODE");
|
|
|
+ String PR_LOCATION = dataObject.getString("PR_LOCATION") == null ? "" : dataObject.getString("PR_LOCATION");
|
|
|
+ String LOCATIONS = dataObject.getString("LOCATIONS") == null ? "" : dataObject.getString("LOCATIONS");
|
|
|
+
|
|
|
+ tv_liaojia.setText(shcode);
|
|
|
+ tv_barcode_tailback.setText(barcode);
|
|
|
+ tv_liaohao.setText(BAR_PRODCODE);
|
|
|
+ tv_barremain.setText(BAR_REMAIN);
|
|
|
+ tv_name.setText(PR_DETAIL);
|
|
|
+ tv_guige.setText(PR_SPEC);
|
|
|
+ tv_wuliaomorencangku.setText(PR_LOCATION);
|
|
|
+ tv_current_position.setText(BAR_LOCATION);
|
|
|
+ tv_aready_stored_in_storage_space.setText(LOCATIONS);
|
|
|
+
|
|
|
+ if (cb_free_listing.isChecked()) {
|
|
|
+ mBarcodeEditText.setText("");
|
|
|
+ }else {
|
|
|
+ mBarcodeEditText.setText("");
|
|
|
+ cet_material_rack.setText("");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFail(int flag, String failStr) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
+ mResultTextView.setTextColor(Color.RED);
|
|
|
+ mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ mResultTextView.setText(failStr);
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
+ mBarcodeEditText.setText(null);
|
|
|
+ cet_material_rack.setText(null);
|
|
|
+ ll_shangjia.setVisibility(View.GONE);
|
|
|
+ ll_end_data.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void savekillAcceptCode(String barcode) {
|
|
|
+ progressDialog.show();
|
|
|
+ VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
+ .url(GloableParams.ADDRESS_FREE_SMART_END)
|
|
|
+ .method(Request.Method.POST)
|
|
|
+ .build(), new HttpCallback() {
|
|
|
+ @Override
|
|
|
+ public void onSuccess(int flag, Object o) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ org.json.JSONObject resultObject = new org.json.JSONObject(o.toString());
|
|
|
+ if (resultObject.optBoolean("success")) {
|
|
|
+ mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ ll_shangjia.setVisibility(View.GONE);
|
|
|
+ ll_end_data.setVisibility(View.VISIBLE);
|
|
|
+ mResultTextView.setText(null);
|
|
|
+ mBarcodeEditText.setText(null);
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
+ mResultTextView.setTextColor(getResources().getColor(R.color.blue));
|
|
|
+ mResultTextView.setText("结束上架操作成功");
|
|
|
+
|
|
|
+ cet_material_rack.requestFocus();
|
|
|
+ cet_material_rack.setSelection(cet_material_rack.getText().length());
|
|
|
+
|
|
|
+ JSONObject dataObject = FastjsonUtil.getJSONObject(o.toString(),"data");
|
|
|
+ tv_end_data.setText(dataObject.toJSONString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFail(int flag, String failStr) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
+ mResultTextView.setTextColor(getResources().getColor(R.color.red));
|
|
|
+ mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ mResultTextView.setText(failStr);
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
+ mBarcodeEditText.setText(null);
|
|
|
+ cet_material_rack.setText(null);
|
|
|
+ ll_shangjia.setVisibility(View.GONE);
|
|
|
+ ll_end_data.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
+ if (resultCode != Activity.RESULT_OK) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (requestCode == SCAN_BARCODE_CODE && data != null) {
|
|
|
+ if (data.getExtras() != null) {
|
|
|
+ String result = data.getExtras().getString(CodeUtils.RESULT_STRING);
|
|
|
+ if (mFocusId == R.id.barcode_info_collect_barcode_et) {
|
|
|
+ mBarcodeEditText.setText(result);
|
|
|
+ mBarcodeEditText.setSelection(result.length());
|
|
|
+ if (!TextUtils.isEmpty(cet_material_rack.getText().toString())) {
|
|
|
+ getBarAcceptCode(result,cet_material_rack.getText().toString().trim());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onHiddenChanged(boolean hidden) {
|
|
|
+ super.onHiddenChanged(hidden);
|
|
|
+ if (!hidden) {
|
|
|
+ FunctionActivity.setTitle(getResources().getString(R.string.free_listing));
|
|
|
+ ((FunctionActivity) getActivity()).setMoreBtnVisible(true);
|
|
|
+ }else {
|
|
|
+ ((FunctionActivity) getActivity()).setMoreBtnVisible(false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onKeyDown(int keyCode, KeyEvent event) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onFragmentBackPressed() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDestroyView() {
|
|
|
+ super.onDestroyView();
|
|
|
+ ((FunctionActivity) getActivity()).setMoreBtnVisible(false);
|
|
|
+ }
|
|
|
+}
|