Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jun 19, 2023
1 parent bd2f962 commit c80e140
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,8 @@ class MainBibleActivity : CustomTitlebarActivityBase() {
val searchLastUsed = preferences.getLong("search-last-used", 0)

val funs = arrayListOf(
Pair(speakLastUsed, {addSpeak()}),
Pair(searchLastUsed, {addSearch()}),
Pair(speakLastUsed) { addSpeak() },
Pair(searchLastUsed) { addSearch() },
)
funs.sortBy { -it.first }

Expand Down

0 comments on commit c80e140

Please sign in to comment.