status-mobile icon indicating copy to clipboard operation
status-mobile copied to clipboard

Keycard account is displayed as regular on login screen after switching dark/light mode while splash screen is shown

Open qoqobolo opened this issue 3 years ago • 1 comments

Bug Report

Problem

This is an edge case, but might be worth a look. Feel free to close if you think it's a won't fix.

There are two scenarios for regular and keycard accounts.

1. Keycard account [still relevant]

Steps (same as for regular account):

  1. Create a keycard account on an Android device
  2. Close the app
  3. Open the app and very quickly tap the overview system Android button (square one) while the splash screen is shown
  4. Change the mode of device from dark to light or wise versa
  5. Open the app

Actual result:

Two types of behavior were found on different Android devices.

  • on Huawei P40 Lite: regular account is opened instead of keycard account; cannot log in until re-opening the app

https://user-images.githubusercontent.com/67952253/182149476-0d19033a-c7a4-4005-a592-965ac267a60c.mp4

  • on Pixel 2: error (until re-opening the app)
Screenshot 2022-08-01 at 14 38 46

2. Regular account [FIXED in #13759, kept for context]

Steps:

  1. Create a new account on an Android device
  2. Close the app
  3. Open the app and very quickly tap the overview system Android button (square one) while the splash screen is shown
  4. Change the mode of device from dark to light or wise versa
  5. Open the app

Actual result: error Cannot read property 'root' of null; reopening helps Expected result: no error

https://user-images.githubusercontent.com/67952253/182148156-941420b0-821c-4aec-a98e-93b4b3296de5.mp4

Additional Information

  • Status version: 1.19
  • Operating System: Android

qoqobolo avatar Aug 01 '22 12:08 qoqobolo

Adding for reference: Issue is in system-theme-mode-changed event. In this event we reinitialize root for applying theme properly and that is causing issue for keycard account.

Parveshdhull avatar Aug 04 '22 18:08 Parveshdhull

keycard account issue is not related with splash screen. Same behavior of showing regular account instead of keycard account also reproducible if theme is changed after screen is opened/

Parveshdhull avatar Sep 01 '22 23:09 Parveshdhull