mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Update unsupported message UI.
This commit is contained in:
@@ -634,6 +634,16 @@ public final class ConversationUpdateItem extends FrameLayout
|
||||
passthroughClickListener.onClick(v);
|
||||
}
|
||||
});
|
||||
} else if (conversationMessage.getMessageRecord().isUnsupported()) {
|
||||
actionButton.setText(R.string.ConversationFragment__update_build);
|
||||
actionButton.setVisibility(VISIBLE);
|
||||
actionButton.setOnClickListener(v -> {
|
||||
if (batchSelected.isEmpty() && eventListener != null) {
|
||||
eventListener.onUpdateSignalClicked();
|
||||
} else {
|
||||
passthroughClickListener.onClick(v);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
actionButton.setVisibility(GONE);
|
||||
actionButton.setOnClickListener(null);
|
||||
|
||||
@@ -3040,6 +3040,10 @@ class ConversationFragment :
|
||||
UnverifiedProfileNameBottomSheet.show(parentFragmentManager, forGroup)
|
||||
}
|
||||
|
||||
override fun onUpdateSignalClicked() {
|
||||
PlayStoreUtil.openPlayStoreOrOurApkDownloadPage(requireContext())
|
||||
}
|
||||
|
||||
override fun onJoinGroupCallClicked() {
|
||||
val activity = activity ?: return
|
||||
val recipient = viewModel.recipientSnapshot ?: return
|
||||
|
||||
Reference in New Issue
Block a user