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

GMMS-7597 [Android] Add Clear Conversation button to top bar menu #132

Open
wants to merge 2 commits into
base: feature/GMMS-7230-Clear-Conversation
Choose a base branch
from

Conversation

SzaszaGenesys
Copy link
Collaborator

No description provided.

@@ -69,6 +69,7 @@ class MainActivity : AppCompatActivity(), ChatEventListener {
private val hasActiveChats get() = chatController?.hasOpenChats() == true
private var chatController: ChatController? = null
private var endMenu: MenuItem? = null
private var clearConversationMenu: MenuItem? = null
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know the rest of the items don't have it, but shouldn't all of them have the word item in the end? For example: clearConversationMenuItem

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know if it makes any difference. If you really want, I can add it.

@@ -107,7 +108,6 @@ class MainActivity : AppCompatActivity(), ChatEventListener {
}

viewModel.authCode.observe(this@MainActivity) {
logoutMenu?.isVisible = viewModel.isAuthenticated
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SzaszaGenesys , The visibility update has been removed, don’t we need to add updateMenuVisibility() call here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same here as on the internal-app. It turned out that it was unnecessary.

@@ -227,16 +229,20 @@ class MainActivity : AppCompatActivity(), ChatEventListener {
return false
}

private fun showClearConversationDialog() {
AlertDialog.Builder(this)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there design / confirmation from Product that the alert dialog is not part of SDK?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there design / confirmation from Product that the alert dialog is not part of SDK?

We talked about it with Product, it is documented in the charter page, it shouldn't be part of the SDK. There is no design from UX, it should be a native dialog.

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.

3 participants