Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
e8e38abe
Commit
e8e38abe
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
homefragment: use child fragment manager
Change-Id: Ib8336eceec7d12b7438ce2d78a827e930fb62e1f
parent
c90e1cd5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/app/src/main/java/cx/ring/fragments/HomeFragment.kt
+2
-2
2 additions, 2 deletions
...droid/app/src/main/java/cx/ring/fragments/HomeFragment.kt
with
2 additions
and
2 deletions
ring-android/app/src/main/java/cx/ring/fragments/HomeFragment.kt
+
2
−
2
View file @
e8e38abe
...
...
@@ -120,7 +120,7 @@ class HomeFragment : BaseSupportFragment<HomePresenter, HomeView>(),
override
fun
onPageSelected
(
position
:
Int
)
{
super
.
onPageSelected
(
position
)
binding
.
tabLayout
.
getTabAt
(
position
)
!!
.
select
()
pagerContent
=
binding
.
pager
.
findFragmentAtPosition
(
requireActivity
().
support
FragmentManager
,
position
)
pagerContent
=
binding
.
pager
.
findFragmentAtPosition
(
child
FragmentManager
,
position
)
conversationBackPressedCallback
.
isEnabled
=
position
!=
TAB_CONVERSATIONS
}
})
...
...
@@ -298,7 +298,7 @@ class HomeFragment : BaseSupportFragment<HomePresenter, HomeView>(),
fun
goToHome
()
{
mBinding
!!
.
tabLayout
.
getTabAt
(
TAB_CONVERSATIONS
)
!!
.
select
()
pagerContent
=
mBinding
!!
.
pager
.
findCurrentFragment
(
requireActivity
().
support
FragmentManager
)
pagerContent
=
mBinding
!!
.
pager
.
findCurrentFragment
(
child
FragmentManager
)
}
private
fun
setBadge
(
menuId
:
Int
,
number
:
Int
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment