Deltachat-android: Lock pattern UI error

Created on 22 Jan 2019  路  12Comments  路  Source: deltachat/deltachat-android

If the screens turns off while inside a chat and user turn it on (before it locks) Delta Chat shows a black screen (the pattern screen) with all text and the pattern dot grid invisible, user must "guess" where the dots are...

  • Platform (android/blackberry/anbox): Android 6.0
  • Device: BLU
  • Delta Chat Version: 0.98.2
  • Steps to reproduce the problem: go to display settings and set the sleep timeout to the minimum value, go to Delta Chat and open a chat, wait the screen turns off, turn it on and you will see the pattern screen but with all text and dots are not visible
  • Screenshots:
    screenshot_20190117-180129

Most helpful comment

also tried to reproduce this without success.

however, with chance, might be that this issue is fixed or changed in a way by https://github.com/deltachat/deltachat-android/pull/706 :)

All 12 comments

Delta Chat shows a black screen (the pattern screen)

Are you sure signal/deltachat is grabing the lock screen? Hoped it's the system's pattern grid.

@testbird when the screen go off, but before it blocks, there are an interval that if you press the on/off hardware button of your phone, the screen turns on but you are not asked for your phone pattern, so yes it is Delta Chat, also it is exactly if you are inside a chat, if you are in the chat list this doesn't happen

Thanks, now I got it.

That sounds pretty weird as this screen is defined by the system. Delta chat triggers the system to show the screen, but no further interaction from Delta is made. The app just waits for the screen to succeed or fail and reacts accordingly. Will have a look with my older device.

While investigating #464 and #649 I tried to reproduce the issue and wasn't able to do that. I tried it with an older device and a Samsung S7. Both behaved just normal (the screen turns dark, but the lock isn't activated yet, so pushing the hardware on/off button just brings back the normal screen with the actucal content).
As already mentioned above we just request the system to show the lock screen, no matter how it looks and no matter how the actual security settings are. I sadly think we can't do much about this.
It's strange that this only happens in the chat view, which I can't really explain to be honest.

@adbenitez When you turn you device off in that scenario and then on again (sleep / wakeup; not power off / on) does the screen work as expected?
Can you use the Home Button on your phone to leave DC?
If so and you enter DC again after that, does the Screen show normal or blank?

@angelo-fuchs I do not turn off the device, the screen turns off itself, before the system locks the screen there are an interval when if you press the power button the screen turns on again without needing to unlock the phone, here is where Delta Chat, which was the foreground app, shows this black screen, as it is delta chat
I can minimize de app and keep working with my device which was never locked

@angelo-fuchs report part 2:
when this happens and I minimize the app, when I go back to the app the chat list is shown(unprotected) even when I was inside a chat when the screen went off, then when I tap a chat the normal pattern screen is shown.

actually part 2 is happening always when I minimize the app, not only when the black screen is shown!! I think I had already reported this anyway... can't remember well...

@adbenitez it's Delta Chat which triggers the displaying of the screen (but the screen is build by the system), as the app requests the system to show the lock screen as soon as it's not in the foreground anymore. So as soon as the system gives the signal that the app is not shown anymore the lock gets applied (obviously with a kind of broken UI).

There is no need that the device starts locking itself in general to apply the Delta Chat locking behavior. So it's totally normal that you can minimize Delta Chat and use your device without problems, even if Delta Chat requested the lock, as the lock is only applied to the Delta Chat app, not your device in general.

Regarding your part 2, yes you already reported that (#649) and it should be "already" fixed, but it's not merged yet as it's in review. It's possible that #649 also helps with this UI problem, but as I wasn't able to reproduce it i neither can deny nor can I confirm that.

Btw. I'm still trying to find a way to also get this broken behavior to see how it can be fixed.

Daniel if as you say, the system is the one failing and Delta Chat just trigger the lock screen, and since this is only happening in my phone at the moment, I recommend closing this, at least until this happens to someone else.

also tried to reproduce this without success.

however, with chance, might be that this issue is fixed or changed in a way by https://github.com/deltachat/deltachat-android/pull/706 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csb0730 picture csb0730  路  4Comments

gerroon picture gerroon  路  3Comments

BoFFire picture BoFFire  路  4Comments

AndreasLattmann picture AndreasLattmann  路  4Comments

angelo-fuchs picture angelo-fuchs  路  4Comments