Skip to content

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

Open
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterfrom
Gbdr73:master
Open

Д.З. по теме Fragments.#64
Gbdr73 wants to merge 1 commit intoAndroid-Developer-Basic:masterfrom
Gbdr73:master

Conversation

@Gbdr73
Copy link
Copy Markdown

@Gbdr73 Gbdr73 commented Nov 16, 2025

No description provided.

}
})
binding.buttonFragmentAA.setOnClickListener(){
childFragmentManager.popBackStack()
Copy link
Copy Markdown

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) {
Copy link
Copy Markdown

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