Skip to content

Commit

Permalink
chore: swap copy/share link position for message text
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit authored and NextAlone committed Apr 7, 2024
1 parent e1e2a38 commit 9e80b25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -33833,7 +33833,11 @@ private void didPressMessageUrl(CharacterStyle url, boolean longPress, MessageOb
builder.setTitle(formattedUrl);
builder.setTitleMultipleLines(true);
final MessageObject finalMessageObject = messageObject;
builder.setItems(new CharSequence[]{LocaleController.getString("Open", R.string.Open), LocaleController.getString("ShareLink", R.string.ShareLink), LocaleController.getString("Copy", R.string.Copy)}, (dialog, which) -> {
builder.setItems(new CharSequence[]{
LocaleController.getString("Open", R.string.Open),
LocaleController.getString("Copy", R.string.Copy),
LocaleController.getString("ShareLink", R.string.ShareLink)
}, (dialog, which) -> {
if (which == 0) {
logSponsoredClicked(finalMessageObject);
processExternalUrl(1, urlFinal, url, finalCell, false);
Expand All @@ -33848,7 +33852,7 @@ private void didPressMessageUrl(CharacterStyle url, boolean longPress, MessageOb
url1 = url1.substring(4);
tel = true;
}
if (which == 2) {
if (which == 1) {
AndroidUtilities.addToClipboard(url1);
createUndoView();
if (undoView == null) {
Expand Down

0 comments on commit 9e80b25

Please sign in to comment.