@Override public boolean dispatchTouchEvent(MotionEvent ev) { InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); jupiterSearchInputLayout.getEditLL().setVisibility(View.GONE); jupiterSearchInputLayout.getShowLL().setVisibility(View.VISIBLE); inputMethodManager.hideSoftInputFromWindow( jupiterSearchInputLayout.getSearchET().getWindowToken(), 0); return super.dispatchTouchEvent(ev); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); command = (OrgPhoneUserCommand) this.getIntent().getSerializableExtra("command"); if (AssertValue.isNotNull(command) && AssertValue.isNotNullAndNotEmpty(command.getUserid())) { userid = command.getUserid(); } if (AssertValue.isNotNull(command) && AssertValue.isNotNullAndNotEmpty(command.getInstid())) { instid = command.getInstid(); } if (!AssertValue.isNotNullAndNotEmpty(userid)) { userid = sessionManager.getUser().getId(); } if (!AssertValue.isNotNullAndNotEmpty(instid)) { instid = sessionManager.getInst().getId(); } jupiterSearchInputLayout = (JupiterSearchInputLayout) this.findViewById(R.id.searchRL); jupiterSearchInputLayout.getSearchET().addTextChangedListener(textWatcher); titleBarLayout.getTitleLeft().setOnClickListener(onCancelClickListener); initView(); }