Skip to content

Commit

Permalink
Merge pull request #85 from linsui/fix
Browse files Browse the repository at this point in the history
fix search message
  • Loading branch information
XilinJia authored Sep 4, 2024
2 parents 16d4328 + f14ff67 commit 943ead2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class OnlineSearchFragment : Fragment() {
progressBar.visibility = View.GONE
adapter?.clear()
handleSearchResults()
txtvEmpty.text = getString(R.string.no_results_for_query) + query
txtvEmpty.text = getString(R.string.no_results_for_query, query)
}
} catch (e: Exception) { handleSearchError(e, query) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ import java.lang.ref.WeakReference
if (results.second != null) adapterFeeds.updateData(results.second!!)
} else adapterFeeds.updateData(emptyList())
if (searchView.query.toString().isEmpty()) emptyViewHandler.setMessage(R.string.type_to_search)
else emptyViewHandler.setMessage(getString(R.string.no_results_for_query) + searchView.query)
else emptyViewHandler.setMessage(getString(R.string.no_results_for_query, searchView.query))
}
} catch (e: Throwable) {
Log.e(TAG, Log.getStackTraceString(e))
Expand Down

0 comments on commit 943ead2

Please sign in to comment.