Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

back button goes back too far on my spesific device

Open Meteor0id opened this issue 4 years ago • 9 comments

  • [x] I have searched open and closed issues for duplicates
  • [x] I am submitting a bug report for existing functionality that does not work as intended
  • [x] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
  • [x] This isn't a feature request or a discussion topic

Bug description

the back button on my device jumps me back out of the conversation to the conversation list, while on devices of others it mearly removes focus from the input field first.


For comparison:

  1. Open a chat
  2. Press on the input field (your keyboard opens)
  3. Press the back button

On the 3rd step your keyboard closed, but the chat is still on your screen. You simply undid the action of giving ficus to the input field.

Now let’s do it again but instead if the text keyboard we open a different keyboard or picker:

  1. Open a chat
  2. Press on either the attachment button, or the emoji button, or the gif button or the sticker button (doesn’t matter which one). (The menu opens)
  3. Press the back button

This time on my device I leave the chat and go back to the overview. This is not consistent with how the text keyboard gets dismissed.

Every step back should undo only 1 action. Opening the attachment menu or emoji keyboard is an action, and so it makes sense the back button only closes that keyboard rsther than closing the whole chat.

Why this matters:

  • Doing this wrong caises unconcious frustration bevause muscle memory is hard to learn for this.
  • It’s even more frustrating because you might be used to something different from other Android apps.

The back button should always first dismiss any opened menu/keyboard and not immediatly close the whole chat.

Another user (Herohtar) tried to reproduce this on a Pixel 5 and for them the nack button dismisses the emoji keyboard and/or attachement picker without closing the conversation, so the issue appears to be device spesific.

Screenshots

Device info

Device: Motorola Moto G7 Plus Android version: 10.0.0 Signal version: 5.30.1

Link to debug log

https://debuglogs.org/c1ac1d5a7b8af2deffbaa2293e5128276053771f8a37063f5555cb2cc08a218a

Meteor0id avatar Jan 26 '22 19:01 Meteor0id

Same happens with me but not sure if it's that big of a deal as I'm kinda used to it now lol

Device: Oneplus Nord Android: 12 (Pixel Experience Custom rom) Signal version: 5.30.2

NotSesmic avatar Jan 27 '22 06:01 NotSesmic

Can reproduce on the oneplus 9 Pro running android 12 and the latest signal beta

Outlet2048 avatar Jan 27 '22 08:01 Outlet2048

Another user (Herohtar) tried to reproduce this on a Pixel 5 and for them the nack button dismisses the emoji keyboard and/or attachement picker without closing the conversation, so the issue appears to be device spesific.

My Pixel 5 does the same thing.

Tursko avatar Jan 27 '22 16:01 Tursko

image

To be clear you're referring to system Back button and not the in-app Up button when referring to the Back button correct?

While keyboard is open and following is pressed, I'd expect:

  • Up button — should navigate to conversation list
  • Back button — should dismiss keyboard and remain on current conversation

aeroechelon avatar Jan 28 '22 00:01 aeroechelon

I am referring to the system back button.

Meteor0id avatar Jan 28 '22 00:01 Meteor0id

I can confirm it on Moto X4 running stock (Android One) Android 9, Signal latest master. Normal keyboard is handled correctly (probably by the OS), other popups (emojis, media) cause the back button to immediately close the chat activity.

daniele-athome avatar Jan 28 '22 13:01 daniele-athome

Yeah I think I broke something when I wrapped up ConversationActivity into a fragment. I'm going to TAL at this over the next few (business) days.

alex-signal avatar Jan 28 '22 13:01 alex-signal

Fixed on the latest beta Thanks! :D

NotSesmic avatar Feb 03 '22 14:02 NotSesmic

Fixed with https://github.com/signalapp/Signal-Android/commit/4de88072976dd678db74405a01ab4615f14a0ef1

Meteor0id avatar Feb 03 '22 14:02 Meteor0id