Skip to content

Commit

Permalink
Handle onBackPressed() deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare committed Aug 31, 2023
1 parent d3fc3aa commit 70abc8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ open class BrowserActivity : AppCompatActivity() {
}
}

super.onBackPressed()
super.onBackPressedDispatcher.onBackPressed()

removeSessionIfNeeded()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class WebExtensionActionPopupActivity : AppCompatActivity() {

override fun onWindowRequest(windowRequest: WindowRequest) {
if (windowRequest.type == WindowRequest.Type.CLOSE) {
activity?.onBackPressed()
activity?.onBackPressedDispatcher?.onBackPressed()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SettingsActivity : AppCompatActivity(), SettingsFragment.ActionBarUpdater
if (it is UserInteractionHandler && it.onBackPressed()) {
return
} else {
super.onBackPressed()
super.onBackPressedDispatcher.onBackPressed()
}
}
}
Expand Down

0 comments on commit 70abc8d

Please sign in to comment.