2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] No issue: Update navigation library

This commit is contained in:
Emily Kager 2019-09-26 11:04:42 -07:00 committed by Emily Kager
parent ad743e6028
commit bb48b2d28f
5 changed files with 8 additions and 8 deletions

View File

@ -222,7 +222,7 @@ abstract class BaseBrowserFragment : Fragment(), BackHandler, SessionManager.Obs
contextMenuFeature.set( contextMenuFeature.set(
feature = ContextMenuFeature( feature = ContextMenuFeature(
fragmentManager = requireFragmentManager(), fragmentManager = parentFragmentManager,
store = store, store = store,
candidates = FenixContextMenuCandidate.defaultCandidates( candidates = FenixContextMenuCandidate.defaultCandidates(
context, context,
@ -271,7 +271,7 @@ abstract class BaseBrowserFragment : Fragment(), BackHandler, SessionManager.Obs
sessionManager = sessionManager, sessionManager = sessionManager,
sessionId = customTabSessionId, sessionId = customTabSessionId,
interceptLinkClicks = true, interceptLinkClicks = true,
fragmentManager = requireFragmentManager() fragmentManager = parentFragmentManager
), ),
owner = this, owner = this,
view = view view = view
@ -282,7 +282,7 @@ abstract class BaseBrowserFragment : Fragment(), BackHandler, SessionManager.Obs
fragment = this, fragment = this,
sessionManager = sessionManager, sessionManager = sessionManager,
sessionId = customTabSessionId, sessionId = customTabSessionId,
fragmentManager = requireFragmentManager(), fragmentManager = parentFragmentManager,
onNeedToRequestPermissions = { permissions -> onNeedToRequestPermissions = { permissions ->
requestPermissions(permissions, REQUEST_CODE_PROMPT_PERMISSIONS) requestPermissions(permissions, REQUEST_CODE_PROMPT_PERMISSIONS)
}), }),
@ -308,7 +308,7 @@ abstract class BaseBrowserFragment : Fragment(), BackHandler, SessionManager.Obs
feature = SitePermissionsFeature( feature = SitePermissionsFeature(
context = context, context = context,
sessionManager = sessionManager, sessionManager = sessionManager,
fragmentManager = requireFragmentManager(), fragmentManager = parentFragmentManager,
promptsStyling = SitePermissionsFeature.PromptsStyling( promptsStyling = SitePermissionsFeature.PromptsStyling(
gravity = getAppropriateLayoutGravity(), gravity = getAppropriateLayoutGravity(),
shouldWidthMatchParent = true, shouldWidthMatchParent = true,

View File

@ -94,7 +94,7 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), BackHandler, Accou
bookmarkView = BookmarkView(view.bookmarkLayout, bookmarkInteractor) bookmarkView = BookmarkView(view.bookmarkLayout, bookmarkInteractor)
signInView = SignInView(view.bookmarkLayout, bookmarkInteractor) signInView = SignInView(view.bookmarkLayout, bookmarkInteractor)
viewLifecycleOwner.lifecycle.addObserver( lifecycle.addObserver(
BookmarkDeselectNavigationListener( BookmarkDeselectNavigationListener(
findNavController(), findNavController(),
sharedViewModel, sharedViewModel,

View File

@ -141,7 +141,7 @@ class SearchFragment : Fragment(), BackHandler {
qrFeature.set( qrFeature.set(
QrFeature( QrFeature(
requireContext(), requireContext(),
fragmentManager = requireFragmentManager(), fragmentManager = parentFragmentManager,
onNeedToRequestPermissions = { permissions -> onNeedToRequestPermissions = { permissions ->
requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS) requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS)
}, },

View File

@ -40,7 +40,7 @@ class PairFragment : Fragment(), BackHandler {
qrFeature.set( qrFeature.set(
QrFeature( QrFeature(
requireContext(), requireContext(),
fragmentManager = requireFragmentManager(), fragmentManager = parentFragmentManager,
onNeedToRequestPermissions = { permissions -> onNeedToRequestPermissions = { permissions ->
requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS) requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS)
}, },

View File

@ -25,7 +25,7 @@ object Versions {
const val androidx_annotation = "1.1.0" const val androidx_annotation = "1.1.0"
const val androidx_lifecycle = "2.2.0-alpha04" const val androidx_lifecycle = "2.2.0-alpha04"
const val androidx_fragment = "1.2.0-alpha03" const val androidx_fragment = "1.2.0-alpha03"
const val androidx_navigation = "2.2.0-alpha02" const val androidx_navigation = "2.2.0-alpha03"
const val androidx_recyclerview = "1.1.0-beta04" const val androidx_recyclerview = "1.1.0-beta04"
const val androidx_testing = "1.2.1-alpha02" const val androidx_testing = "1.2.1-alpha02"
const val androidx_test_ext = "1.0.0" const val androidx_test_ext = "1.0.0"