/** * 单元号 */ // @TextChange(R.id.rent_unit_no) // public void unitNumberChange() { // mRentUnitNumber = mRentUnitNo.getText().toString(); // //trim heading zero // while (mRentBuilding.length() > 0) { // if (mRentUnitNumber.startsWith("0")) { // mRentUnitNumber = mRentUnitNumber.substring(1); // } else { // break; // } // } // // ManyiAnalysis.onEvent(this.getActivity(), // "HouseNumberOnRentPublishClick"); // } // @TextChange(R.id.rent_room_no) public void roomNumber() { mRentRoomNumber = mRentRoomNO.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(),"HouseRoomNumberOnRentPublishClick"); }
@TextChange void passwordInput(CharSequence newText, int start, int before, int count) { if (UserHelper.isFirstLogin()) return; Log.d(LOG_TAG, "onTextChanged: " + newText); validate(newText); // if (UserHelper.authenticate("userName", newText.toString())) {// todo manage with user name // // passwordInput.setActivated(false); // // UserHelper.setIsLogged(true); // // MainActivity.start(this); // } }
/** * 单元 */ @TextChange(R.id.rent_unit_no) public void unitNoChange() { mRentUnitNumber = mRentUnitNo.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(), "HouseNumberOnRentPublishClick"); }
/** * 室号 */ @TextChange(R.id.sell_room_no) public void roomNumber() { mSellRoomNumber = mSellRoomNO.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(), "HouseRoomNumberOnSellPublishClick"); }
@TextChange(R.id.search) @AfterViews protected void updateAdapterContent() { final String term = search.getText().toString().toLowerCase(); final List<Area> filtered = new ArrayList<>(); for (Area area : getAreas()) { if (area.label().toLowerCase().contains(term)) { filtered.add(area); } } adapter.setAreas(filtered); }
@TextChange(R.id.edit_query) void onQueryChanged(CharSequence query) { bus.event(new InputChanged(workFragment.name, TextUtils.isEmpty(query))); }
@TextChange(R.id.edit_number) void onNumberChanged(CharSequence number) { bus.event(new InputChanged(workFragment.name, TextUtils.isEmpty(number))); }
/** * 栋座 */ @TextChange(R.id.rent_seat_number) public void seatNumberChange() { mRentBuilding = mRentSeatNumber.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(),"HouseNumberOnRentPublishClick"); }
@TextChange(R.id.sell_seat_number) public void seatNumberChange() { mSellBuilding = mSellSeatNumber.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(), "HouseNumberOnRentPublishClick"); }
@TextChange(R.id.sell_unit_no) public void sellNotUnits() { mSellUnitNumber = mUtilNot.getText().toString(); ManyiAnalysis.onEvent(this.getActivity(), "HouseNumberOnRentPublishClick"); }
@TextChange void oldPassword(CharSequence newText, int start, int before, int count) { oldPasswordValid = count > 0; validate(oldPassword); }
@TextChange void newPassword(CharSequence newText, int start, int before, int count) { newPasswordValid = count > 0; validate(newPassword); }
@TextChange void confirmNewPassword(CharSequence newText, int start, int before, int count) { confirmNewPasswordValid = count > 0; validate(confirmNewPassword); }
@TextChange(R.id.url) protected void onUrlChanged() { urlEditText.setError(null); }