Skip to content

Commit

Permalink
reordering some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed May 22, 2021
1 parent 02a26c1 commit 4309687
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class MainActivity : SimpleActivity() {
}

override fun onPrepareOptionsMenu(menu: Menu?): Boolean {
val favorites = config.favorites
val currentFragment = getCurrentFragment() ?: return true
val favorites = config.favorites

menu!!.apply {
findItem(R.id.search).isVisible = currentFragment is ItemsFragment
Expand Down

0 comments on commit 4309687

Please sign in to comment.