Skip to content

Commit

Permalink
hide back button when fragmented
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjaySargam committed May 29, 2024
1 parent 7943d71 commit 584dc43
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ class StudyOptionsFragment : Fragment(), ChangeManager.Subscriber, Toolbar.OnMen
icon!!.isAutoMirrored = true
toolbar!!.navigationIcon = icon
toolbar!!.setNavigationOnClickListener { (activity as AnkiActivity).finish() }
} else {
toolbar!!.navigationIcon = null
}
} catch (e: IllegalStateException) {
if (!CollectionManager.isOpenUnsafe()) {
Expand Down

0 comments on commit 584dc43

Please sign in to comment.