Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
nit code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ratabb committed Aug 16, 2018
1 parent 17e70dc commit 621ba1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class BadgeTool : AbsTools(), BadgeView, ColorMixDialog.OnColorChangeListener {
appPref: AppPref,
crossinline condition: () -> Boolean
): Boolean = condition().also {
if (it){
if (it) {
val upperCaseText = text?.toString()?.toUpperCase() ?: AppPref.DEF_BADGE_TEXT
text = upperCaseText
clearFocus()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class FavoriteFragmentPresenter @Inject constructor(

fun setUpMenu(menu: Menu) {
val searchView: SearchView = menu.findItem(R.id.action_search).actionView as SearchView
searchView.context.getString(R.string.search_template_hint)?.let { searchView.queryHint = it }
searchView.context.getString(R.string.search_template_hint)?.let {
searchView.queryHint = it
}
RxSearchView.queryTextChange(searchView)
.delayed()
.observeOn(schedulerProvider.ui())
Expand Down

0 comments on commit 621ba1a

Please sign in to comment.