Пример #1
0
  private void findPesonFromDb(String query) {
    if (HandleResponseUtil.db == null) {
      HandleResponseUtil.db = Db.getInstance(SearchActivity.this);
    }

    if (HandleResponseUtil.db.loadPhoneInfoByName(query, phoneInfos)) {
      phoneAdapter.notifyDataSetChanged();
    } else no_preson_tv.setVisibility(View.VISIBLE);
  }