|
|
@@ -0,0 +1,455 @@
|
|
|
+package com.uas.pda_smart_com.fragment;
|
|
|
+
|
|
|
+import android.text.Editable;
|
|
|
+import android.text.TextUtils;
|
|
|
+import android.text.TextWatcher;
|
|
|
+import android.util.Log;
|
|
|
+import android.view.KeyEvent;
|
|
|
+import android.view.View;
|
|
|
+import android.view.inputmethod.EditorInfo;
|
|
|
+import android.widget.AdapterView;
|
|
|
+import android.widget.AutoCompleteTextView;
|
|
|
+import android.widget.ImageView;
|
|
|
+import android.widget.TextView;
|
|
|
+
|
|
|
+import com.android.volley.AuthFailureError;
|
|
|
+import com.android.volley.DefaultRetryPolicy;
|
|
|
+import com.android.volley.Request;
|
|
|
+import com.android.volley.Response;
|
|
|
+import com.android.volley.VolleyError;
|
|
|
+import com.android.volley.toolbox.StringRequest;
|
|
|
+import com.uas.pda_smart_com.R;
|
|
|
+import com.uas.pda_smart_com.application.PdaApplication;
|
|
|
+import com.uas.pda_smart_com.global.GloableParams;
|
|
|
+import com.uas.pda_smart_com.tools.SharedPreUtil;
|
|
|
+import com.uas.pda_smart_com.tools.VolleyUtil;
|
|
|
+import com.uas.pda_smart_com.util.CommonUtil;
|
|
|
+import com.uas.pda_smart_com.util.Constants;
|
|
|
+import com.uas.pda_smart_com.util.JsonUtils;
|
|
|
+import com.uas.pda_smart_com.util.LogUtil;
|
|
|
+import com.uas.pda_smart_com.util.MyArrayAdapter;
|
|
|
+import com.uas.pda_smart_com.view.ClearableEditText;
|
|
|
+
|
|
|
+import org.json.JSONArray;
|
|
|
+import org.json.JSONException;
|
|
|
+import org.json.JSONObject;
|
|
|
+
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLEncoder;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * SN过站主页
|
|
|
+ */
|
|
|
+public class SNGuoZhanFragment extends BaseFragment {
|
|
|
+ AutoCompleteTextView ac_tv_gwzy;
|
|
|
+ ImageView iv_clear_1;
|
|
|
+ AutoCompleteTextView ac_tv_gdh;
|
|
|
+ ImageView iv_clear_2;
|
|
|
+ TextView tv_product_no;
|
|
|
+ TextView tv_product_name;
|
|
|
+ TextView tv_has_caiji_num;
|
|
|
+ TextView tv_not_caiji_num;
|
|
|
+ ClearableEditText et_sn;
|
|
|
+ TextView tv_msg;
|
|
|
+ private static final int MACODE_FUZZY = 0;//工单号
|
|
|
+ private static final int GWZY_FUZZY = 1;//岗位资源
|
|
|
+ private StringRequest mStringRequest;
|
|
|
+ private MyArrayAdapter mAutoStringAdapter;
|
|
|
+ private String pr_code;//产品编号
|
|
|
+ private String pr_detail;//产品名称
|
|
|
+ private String mcd_okqty;// 已采集数
|
|
|
+ private String mcd_remainqty;// 待采集数
|
|
|
+ private String iSourceCode;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected int getLayout() {
|
|
|
+ return R.layout.fragment_sn_guozhan;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initViews() {
|
|
|
+ root.setBackgroundColor(getResources().getColor(R.color.background_color_second));
|
|
|
+ ac_tv_gwzy=root.findViewById(R.id.ac_tv_gwzy);
|
|
|
+ iv_clear_1=root.findViewById(R.id.iv_clear_1);
|
|
|
+ ac_tv_gdh=root.findViewById(R.id.ac_tv_gdh);
|
|
|
+ iv_clear_2=root.findViewById(R.id.iv_clear_2);
|
|
|
+ tv_product_no=root.findViewById(R.id.tv_product_no);
|
|
|
+ tv_product_name=root.findViewById(R.id.tv_product_name);
|
|
|
+ tv_has_caiji_num=root.findViewById(R.id.tv_has_caiji_num);
|
|
|
+ tv_not_caiji_num=root.findViewById(R.id.tv_not_caiji_num);
|
|
|
+ et_sn=root.findViewById(R.id.et_sn);
|
|
|
+ tv_msg=root.findViewById(R.id.tv_msg);
|
|
|
+ ac_tv_gwzy.setThreshold(1);
|
|
|
+ ac_tv_gdh.setThreshold(1);
|
|
|
+ ac_tv_gwzy.requestFocus();
|
|
|
+ iSourceCode=SharedPreUtil.getString(mActivity
|
|
|
+ , Constants.FLAG.CACHE_DEFAULT_GWZY + CommonUtil.getUserName(mActivity), null);
|
|
|
+ if (!TextUtils.isEmpty(iSourceCode) ) {
|
|
|
+ ac_tv_gwzy.setText(iSourceCode);
|
|
|
+ ac_tv_gwzy.setSelection(iSourceCode.length());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initEvents() {
|
|
|
+ ac_tv_gwzy.setOnFocusChangeListener(new View.OnFocusChangeListener() {
|
|
|
+ @Override
|
|
|
+ public void onFocusChange(View v, boolean hasFocus) {
|
|
|
+ if(!hasFocus){
|
|
|
+ iSourceCode=ac_tv_gwzy.getText().toString().trim();
|
|
|
+ if(!TextUtils.isEmpty(iSourceCode)){
|
|
|
+ SharedPreUtil.saveString(mActivity, Constants.FLAG.CACHE_DEFAULT_GWZY + CommonUtil.getUserName(mActivity),iSourceCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ ac_tv_gwzy.addTextChangedListener(new TextWatcher() {
|
|
|
+ @Override
|
|
|
+ public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
+ if (s.length() >= 1) {
|
|
|
+ if (!s.toString().matches(Constants.REGEX.NO_SYMBOL)) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), getResources().getString(R.string.note_number_cannot_contain_special));
|
|
|
+ ac_tv_gwzy.setText(null);
|
|
|
+ ac_tv_gwzy.requestFocus();
|
|
|
+ } else {
|
|
|
+ fuzzySearch(ac_tv_gwzy,GWZY_FUZZY);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void afterTextChanged(Editable s) {
|
|
|
+ if (s == null || s.length() == 0) {
|
|
|
+ iv_clear_1.setVisibility(View.GONE);
|
|
|
+ } else {
|
|
|
+ iv_clear_1.setVisibility(View.VISIBLE);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ ac_tv_gdh.addTextChangedListener(new TextWatcher() {
|
|
|
+ @Override
|
|
|
+ public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
+ if (s.length() >= 1) {
|
|
|
+ if (!s.toString().matches(Constants.REGEX.NO_SYMBOL)) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), getResources().getString(R.string.note_number_cannot_contain_special));
|
|
|
+ ac_tv_gdh.setText(null);
|
|
|
+ ac_tv_gdh.requestFocus();
|
|
|
+ } else {
|
|
|
+ fuzzySearch(ac_tv_gdh,MACODE_FUZZY);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void afterTextChanged(Editable s) {
|
|
|
+ if (s == null || s.length() == 0) {
|
|
|
+ iv_clear_2.setVisibility(View.GONE);
|
|
|
+ } else {
|
|
|
+ iv_clear_2.setVisibility(View.VISIBLE);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ et_sn.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
|
|
+ @Override
|
|
|
+ public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
+ if (actionId == EditorInfo.IME_ACTION_SEND
|
|
|
+ || actionId == EditorInfo.IME_ACTION_SEARCH
|
|
|
+ || actionId == EditorInfo.IME_ACTION_DONE
|
|
|
+ || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
+ if (TextUtils.isEmpty(et_sn.getText().toString().trim())) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), "请输入SN");
|
|
|
+ } else if (CommonUtil.isStringContainsSpecialChar(et_sn.getText().toString().trim())) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), "SN不能包含特殊字符");
|
|
|
+ } else {
|
|
|
+ validateSN();
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ ac_tv_gdh.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
+ if (TextUtils.isEmpty(ac_tv_gwzy.getText().toString().trim())) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), "请输入岗位资源");
|
|
|
+ } else if (CommonUtil.isStringContainsSpecialChar(ac_tv_gwzy.getText().toString().trim())) {
|
|
|
+ CommonUtil.toastNoRepeat(getActivity(), "岗位资源不能包含特殊字符");
|
|
|
+ } else {
|
|
|
+ iSourceCode=ac_tv_gwzy.getText().toString().trim();
|
|
|
+ getProdInfoMessage(iSourceCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ iv_clear_1.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ ac_tv_gwzy.setText("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ iv_clear_2.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ ac_tv_gdh.setText("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private void validateSN() {
|
|
|
+ String iSourceCode=ac_tv_gwzy.getText().toString().trim();//岗位资源
|
|
|
+ String iMakeCode=ac_tv_gdh.getText().toString().trim();//工单号
|
|
|
+ String snStr=et_sn.getText().toString().trim();
|
|
|
+ if(TextUtils.isEmpty(iSourceCode)){
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "岗位资源不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(TextUtils.isEmpty(iMakeCode)){
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "工单号不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(TextUtils.isEmpty(snStr)){
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "SN不能为空");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ getProdInfoMessage(iSourceCode);
|
|
|
+
|
|
|
+ progressDialog.show();
|
|
|
+ String url = null;
|
|
|
+ try {
|
|
|
+ url = GloableParams.ADDRESS_SN_PASS+
|
|
|
+ "?iMakeCode=" + URLEncoder.encode(iMakeCode, "utf-8")
|
|
|
+ +"&iSourceCode="+URLEncoder.encode(iSourceCode, "utf-8")
|
|
|
+ +"&iSN="+URLEncoder.encode(snStr, "utf-8")
|
|
|
+ +"&iUserCode="+URLEncoder.encode(CommonUtil.getUserName(mActivity), "utf-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ //取消重复请求
|
|
|
+ PdaApplication.mRequestQueue.cancelAll(TAG);
|
|
|
+ mStringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
|
|
|
+ @Override
|
|
|
+ public void onResponse(String s) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ try {
|
|
|
+ JSONObject resultJsonObject = new JSONObject(s);
|
|
|
+ JSONObject dataObject = resultJsonObject.getJSONObject("data");
|
|
|
+ String oErr =JsonUtils.optStringNotNull(dataObject, "oErr");
|
|
|
+ if(!TextUtils.isEmpty(oErr)){
|
|
|
+ tv_msg.setText(oErr);
|
|
|
+ tv_msg.setTextColor(getResources().getColor(R.color.red));
|
|
|
+ }else{
|
|
|
+ tv_msg.setText("SN:"+snStr+"采集成功");
|
|
|
+ tv_msg.setTextColor(getResources().getColor(R.color.black));
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }, new Response.ErrorListener() {
|
|
|
+ @Override
|
|
|
+ public void onErrorResponse(VolleyError error) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.showErrorToast(error);
|
|
|
+ reset();
|
|
|
+ }
|
|
|
+ }) {
|
|
|
+ @Override
|
|
|
+ public Map<String, String> getHeaders() throws AuthFailureError {
|
|
|
+ return VolleyUtil.getVolleyUtil().setCookies();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ mStringRequest.setRetryPolicy(new DefaultRetryPolicy(10 * 1000, 0, 1f));
|
|
|
+ mStringRequest.setTag(TAG);
|
|
|
+ PdaApplication.mRequestQueue.add(mStringRequest);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 确定按钮点击事件、enter事件
|
|
|
+ */
|
|
|
+ private void getProdInfoMessage(String iSourceCode) {
|
|
|
+ progressDialog.show();
|
|
|
+ String iMakeCode = ac_tv_gdh.getText().toString();
|
|
|
+
|
|
|
+ if (TextUtils.isEmpty(iMakeCode)) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String url = null;
|
|
|
+ try {
|
|
|
+ url = GloableParams.ADDRESS_GET_MAKE_INFO+ "?iMakeCode=" + URLEncoder.encode(iMakeCode, "utf-8")+"&iSourceCode="+URLEncoder.encode(iSourceCode, "utf-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ //取消重复请求
|
|
|
+ PdaApplication.mRequestQueue.cancelAll(TAG);
|
|
|
+ mStringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
|
|
|
+ @Override
|
|
|
+ public void onResponse(String s) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ LogUtil.e("!!!ok", s);
|
|
|
+ try {
|
|
|
+ JSONObject resultJsonObject = new JSONObject(s);
|
|
|
+ JSONObject dataObject = resultJsonObject.getJSONObject("data");
|
|
|
+ pr_code=JsonUtils.optStringNotNull(dataObject, "PR_CODE");
|
|
|
+ pr_detail=JsonUtils.optStringNotNull(dataObject, "PR_DETAIL");
|
|
|
+ mcd_okqty=JsonUtils.optStringNotNull(dataObject, "MCD_OKQTY");
|
|
|
+ mcd_remainqty=JsonUtils.optStringNotNull(dataObject, "MCD_REMAINQTY");
|
|
|
+ tv_product_no.setText(pr_code);
|
|
|
+ tv_product_name.setText(pr_detail);
|
|
|
+ tv_has_caiji_num.setText(mcd_okqty);
|
|
|
+ tv_not_caiji_num.setText(mcd_remainqty);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }, new Response.ErrorListener() {
|
|
|
+ @Override
|
|
|
+ public void onErrorResponse(VolleyError error) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.showErrorToast(error);
|
|
|
+ reset();
|
|
|
+ }
|
|
|
+ }) {
|
|
|
+ @Override
|
|
|
+ public Map<String, String> getHeaders() throws AuthFailureError {
|
|
|
+ return VolleyUtil.getVolleyUtil().setCookies();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ mStringRequest.setRetryPolicy(new DefaultRetryPolicy(10 * 1000, 0, 1f));
|
|
|
+ mStringRequest.setTag(TAG);
|
|
|
+ PdaApplication.mRequestQueue.add(mStringRequest);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void reset() {
|
|
|
+ if (getActivity() != null) {
|
|
|
+ ac_tv_gwzy.getText().clear();
|
|
|
+ ac_tv_gdh.getText().clear();
|
|
|
+ tv_product_name.setText("");
|
|
|
+ tv_product_no.setText("");
|
|
|
+ tv_has_caiji_num.setText("");
|
|
|
+ tv_not_caiji_num.setText("");
|
|
|
+ if (progressDialog.isShowing()){
|
|
|
+ progressDialog.dismiss();
|
|
|
+ }
|
|
|
+ CommonUtil.editTextGetFocus(ac_tv_gwzy);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模糊查询
|
|
|
+ *
|
|
|
+ * @param jobsEditText
|
|
|
+ * @param fuzzy
|
|
|
+ */
|
|
|
+ private void fuzzySearch(final AutoCompleteTextView jobsEditText, final int fuzzy) {
|
|
|
+ String url = null;
|
|
|
+ try {
|
|
|
+ if (fuzzy == MACODE_FUZZY){//工单模糊搜索
|
|
|
+ url = GloableParams.ADDRESS_FULL_SEARCH_MAKE
|
|
|
+ + "?iMakeCode=" + URLEncoder.encode(jobsEditText.getText().toString().toLowerCase(), "utf-8");
|
|
|
+ } else if (fuzzy == GWZY_FUZZY){//岗位资源模糊搜索
|
|
|
+ url = GloableParams.ADDRESS_FULL_SEARCH_SOURCE
|
|
|
+ + "?iSource=" + URLEncoder.encode(jobsEditText.getText().toString().toLowerCase(), "utf-8");
|
|
|
+ }
|
|
|
+
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ if (fuzzy == MACODE_FUZZY){
|
|
|
+ url = GloableParams.ADDRESS_FULL_SEARCH_MAKE
|
|
|
+ + "?iMakeCode=" + jobsEditText.getText().toString().toLowerCase();
|
|
|
+ } else if (fuzzy == GWZY_FUZZY){
|
|
|
+ url = GloableParams.ADDRESS_FULL_SEARCH_SOURCE
|
|
|
+ + "?iSource=" + jobsEditText.getText().toString().toLowerCase();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ PdaApplication.mRequestQueue.cancelAll(TAG + "fuzzysearch");
|
|
|
+
|
|
|
+ mStringRequest = new StringRequest(Request.Method.GET, url,
|
|
|
+ new Response.Listener<String>() {
|
|
|
+ @Override
|
|
|
+ public void onResponse(String s) {
|
|
|
+ Log.e("autoStrings", s);
|
|
|
+ List<String> mAutoStrings = new ArrayList<String>();
|
|
|
+ try {
|
|
|
+ mAutoStrings.clear();
|
|
|
+ mAutoStringAdapter = new MyArrayAdapter<String>(mActivity, android.R.layout.simple_dropdown_item_1line, mAutoStrings);
|
|
|
+ if (jobsEditText != null) {
|
|
|
+ jobsEditText.setAdapter(mAutoStringAdapter);
|
|
|
+ }
|
|
|
+
|
|
|
+ JSONObject resultObject = new JSONObject(s);
|
|
|
+ JSONArray dataArray = resultObject.optJSONArray("data");
|
|
|
+ if (dataArray != null) {
|
|
|
+ for (int i = 0; i < dataArray.length(); i++) {
|
|
|
+ JSONObject dataObject = dataArray.optJSONObject(i);
|
|
|
+ if (dataObject != null) {
|
|
|
+ String pi_inoutno = JsonUtils.optStringNotNull(dataObject, fuzzy == MACODE_FUZZY ? "MA_CODE" : "SC_CODE");
|
|
|
+ if (!TextUtils.isEmpty(pi_inoutno))
|
|
|
+ mAutoStringAdapter.add(pi_inoutno);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (JSONException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ new Response.ErrorListener() {
|
|
|
+ @Override
|
|
|
+ public void onErrorResponse(VolleyError volleyError) {
|
|
|
+ CommonUtil.showErrorToast(volleyError);
|
|
|
+ jobsEditText.setText("");
|
|
|
+ jobsEditText.requestFocus();
|
|
|
+ CommonUtil.openKeybord(jobsEditText, mActivity);
|
|
|
+ }
|
|
|
+ }) {
|
|
|
+ @Override
|
|
|
+ public Map<String, String> getHeaders() throws AuthFailureError {
|
|
|
+ return VolleyUtil.getVolleyUtil().setCookies();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ mStringRequest.setRetryPolicy(new DefaultRetryPolicy(10 * 1000, 0, 1f));
|
|
|
+ mStringRequest.setTag(TAG + "fuzzysearch");
|
|
|
+ PdaApplication.mRequestQueue.add(mStringRequest);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void initDatas() {
|
|
|
+ ((TextView) (getActivity().findViewById(R.id.tv_actionbar_withback))).setText("SN过站");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onKeyDown(int keyCode, KeyEvent event) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onFragmentBackPressed() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|