Skip to content

Commit

Permalink
close navigation drawer on sync menu selection (#1746)
Browse files Browse the repository at this point in the history
* close navigation drawer on sync menu selection

* Stop "sync" item from being selected

Co-authored-by: Jing Tang <[email protected]>
  • Loading branch information
PallaviGanorkar and jingtang10 committed Dec 4, 2022
1 parent 17e704e commit 5095aba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class MainActivity : AppCompatActivity() {
when (item.itemId) {
R.id.menu_sync -> {
viewModel.triggerOneTimeSync()
return true
binding.drawer.closeDrawer(GravityCompat.START)
return false
}
}
binding.drawer.closeDrawer(GravityCompat.START)
return false
}

Expand Down

0 comments on commit 5095aba

Please sign in to comment.