Deltachat-android: Can't share with pattern set

Created on 21 Jan 2019  路  5Comments  路  Source: deltachat/deltachat-android

I have set the Screen lock option to unlock Delta Chat with a pattern, but with this option set, sharing a file with Delta Chat doesn't work

  • Platform (android/blackberry/anbox): Android 6.0
  • Device: BLU
  • Delta Chat Version: 0.98.2
  • Steps to reproduce the problem: Go to Settings/Privacy and enable "Screen Lock" switch, close the app go to your file manager and try to share a file, select Delta Chat, you will prompted to enter your pattern, nothing happens, you get back to your file manager.
bug

Most helpful comment

Will look into that one.

All 5 comments

Will look into that one.

Nearly the same problem for PIN and on newer version.
(Mostly copied from adbenitez and changed the different things.)

Platform (android/blackberry/anbox): Android 8.1 (omniROM)
Device: suzu (Sony Xperia X)
Delta Chat Version: 0.100.0
Steps to reproduce the problem: Go to Settings/Privacy and enable "Screen Lock" switch, close the app go to your file manager and try to share a file, select Delta Chat, you will prompted to enter your PIN, enter the PIN, then the prompt to enter the PIN will reappear again, the same always happens if I enter the PIN.

Yep, this issue shouldn't be related to the given Android version. The sharing stuff needs to be aware of the screen lock feature, which is currently missing and I hope it will be fixed next week.

Fixed by:

  • Allowing the ShareActivity to exist in the stack history
  • Moved the deletion of unneeded content from onPause to onDestroy, to allow the ShareActivity to exist in the background (required as soon as the ScreenLockActivity takes over the screen)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

adbenitez picture adbenitez  路  4Comments

AndreasLattmann picture AndreasLattmann  路  4Comments

gitkald picture gitkald  路  5Comments

r10s picture r10s  路  4Comments

travisfw picture travisfw  路  5Comments