Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOMEWORK_ACTIVITIES_1] #38

Open
wants to merge 2 commits into
base: homeworks/activities_01
Choose a base branch
from

Conversation

MVSYCHEV
Copy link

@MVSYCHEV MVSYCHEV commented Nov 4, 2023

No description provided.

buttonOpenD.setOnClickListener {
println("You clicked on button ${R.string.open_activity_d}")
val intent = Intent(this, ActivityD::class.java).apply {
flags = Intent.FLAG_ACTIVITY_CLEAR_TASK
Copy link

Choose a reason for hiding this comment

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

Тут не хватает флажка. Посмотрите документацию

Copy link
Author

Choose a reason for hiding this comment

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

done

val intent = Intent(this, ActivityA::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
}
startActivity(intent)
Copy link

Choose a reason for hiding this comment

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

Да, а тут добавить finishAffinity, как я писал в отзыве

Copy link
Author

Choose a reason for hiding this comment

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

done

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