Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Д.З. по теме Fragments.#64

Open
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/Fragments:masterfrom
Gbdr73:masterGbdr73/Fragments:masterCopy head branch name to clipboard
Open

Д.З. по теме Fragments.#64
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterAndroid-Developer-Basic/Fragments:masterfrom
Gbdr73:masterGbdr73/Fragments:masterCopy head branch name to clipboard

Conversation

@Gbdr73
Copy link

@Gbdr73 Gbdr73 commented Nov 16, 2025

No description provided.

}
})
binding.buttonFragmentAA.setOnClickListener(){
childFragmentManager.popBackStack()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Транзакция с addToBackStack(null) сама управляет стеком


override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
if (binding.containerFragmentB == null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давайте проверять resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE. Через binding.containerFragmentB == null может работать, но ненадежно :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.