-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: feature/GMMS-7230-Clear-Conversation
Are you sure you want to change the base?
Conversation
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.