Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Delayed Appearance of Newly Created Folders #2250

Closed
4 tasks done
XYIheng opened this issue Mar 27, 2024 · 12 comments
Closed
4 tasks done

Bug Report: Delayed Appearance of Newly Created Folders #2250

XYIheng opened this issue Mar 27, 2024 · 12 comments
Assignees
Milestone

Comments

@XYIheng
Copy link

XYIheng commented Mar 27, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

In the markor, when creating a new folder, the new folder does not appear immediately. The delayed appearance of the newly created folder causes confusion and disrupts the expected user experience.

Steps to reproduce

  1. click FAB
  2. rotate device
  3. enter the folder name
  4. click Folder
  5. see error: the created folder doesn't appear, and you need to refresh the app to let the folder appear
bug_create_folder.mp4

Information

Android version: Android 10
Device: pixel2 and pixel 7
App Version: 2.11.1

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-
@gsantner
Copy link
Owner

gsantner commented Mar 27, 2024 via email

@XYIheng
Copy link
Author

XYIheng commented Mar 27, 2024

@gsantner Hi, I just download the latest build apk from your link and find the bug still exists

@gsantner
Copy link
Owner

gsantner commented Mar 27, 2024 via email

@XYIheng
Copy link
Author

XYIheng commented Mar 28, 2024

@gsantner Yes, in Marder.
image

@XYIheng
Copy link
Author

XYIheng commented Mar 28, 2024

20240328_162027.mp4

Also not work when try to create new files

@gsantner
Copy link
Owner

Humbly said, I can not reproduce on release nor testversion. New stuff shows up after accepting.

@XYIheng
Copy link
Author

XYIheng commented Apr 3, 2024

Humbly said, I can not reproduce on release nor testversion. New stuff shows up after accepting.

Hi, I downloaded Marder from this link https://github.com/gsantner/markor/actions/runs/8483832311
And tested it on my real device: Xiaomi 10s, MIUI14.0.6.
The bug still exists

@XixianLiang
Copy link

XixianLiang commented Apr 3, 2024

I can also reproduce this bug.
apk version (the one that @XYIheng mentioned above): https://github.com/gsantner/markor/actions/runs/8483832311

HUAWEI HONER
Android: 12
OS: MagicOS 7.0
Model: AGT-AN00

@gsantner
Copy link
Owner

gsantner commented Apr 3, 2024

Feel free to fix the issue and create a merge request. Thanks!

@harshad1
Copy link
Collaborator

I have traced this bug.

We pass a callback into the NewFileDialog to be triggered when the dialog completes. Upon rotation, the dialog is recreated and the callback is invalidated.

We need to either preserve the callback (difficult) or change how we trigger whatever we want to trigger after the dialog is complete.

@harshad1
Copy link
Collaborator

Ok, the solution was simple. I have it included here - https://github.com/gsantner/markor/pull/2275/files

@gsantner gsantner added this to the Markor v2.13 milestone May 20, 2024
@gsantner gsantner modified the milestones: Markor v2.13, Markor v2.12 May 20, 2024
@gsantner
Copy link
Owner

closed by #2277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants