Tiddloid icon indicating copy to clipboard operation
Tiddloid copied to clipboard

Android 11 status bar fails to restore after exiting

Open Dialga opened this issue 3 years ago • 19 comments

After exiting tiddloid from a shortcut to a tiddlywiki file, the status bar is not restored on Android 11. Expected behavior is that the status bar returns.

Dialga avatar Jul 28 '21 09:07 Dialga

Okay. Did you mean: You opened a wiki from main screen -> back to desktop -> open another via a shortcut (with status bar hidden) -> close it and back to the wiki previously opened? If so, I think I got what is wrong. I'll try to fix it soon.

donmor avatar Aug 01 '21 01:08 donmor

No this is not on the desktop, I've opened it from the shortcut on the app screen then tapped back to exit.

Dialga avatar Aug 02 '21 08:08 Dialga

Any screenshots? I'm trying to reproduce it but nothing wrong happened yet.

donmor avatar Aug 02 '21 08:08 donmor

I'll add one soon.

The exact steps:

  1. Create new tiddlywiki file, save it without name
  2. Back in tiddloid long tap on the created tiddlywiki
  3. then tap "create a shortcut" note the path is (invalid).html
  4. "shortcut added successfully" pops up even though add is not tapped yet
  5. tap on Add "shortcut to x added to home screen"
  6. tap back to exit tiddloid
  7. android status bar remains hidden

Seems to occur only after starting tiddloid after a period of non use, and creating a new tiddlywiki file.

Dialga avatar Aug 02 '21 08:08 Dialga

Hmmm...Where did you put the new file in? Is it created on a cloud drive, or the internal storage?

donmor avatar Aug 02 '21 08:08 donmor

external sd card

Dialga avatar Aug 02 '21 08:08 Dialga

Hmm.. There's no string resource of "(invalid)" in the app... So you created a file without name and the system gave the file a name (invalid).html?

donmor avatar Aug 02 '21 08:08 donmor

yes

Dialga avatar Aug 02 '21 08:08 Dialga

Operated as you did but nothing weird happened... In fact I had never made the status bar hidden on the main screen... Even if the status bar is hidden under landscape mode, it'll restore on entering the main screen...

donmor avatar Aug 02 '21 08:08 donmor

What phone are you using?

donmor avatar Aug 02 '21 08:08 donmor

Samsung Galaxy S10 with Android 11.

Dialga avatar Aug 02 '21 08:08 Dialga

When did the status bar disappear for the first time during the reproduction?

donmor avatar Aug 02 '21 08:08 donmor

First install and after reboot.

Dialga avatar Aug 02 '21 09:08 Dialga

You mean... The status bar disappeared on entering the app, and never come back?

donmor avatar Aug 02 '21 09:08 donmor

Yes

Dialga avatar Aug 02 '21 09:08 Dialga

That's completely abnormal... I had never seen that before even on Android 11 AVD... Are you able to get logcat from your phone?

donmor avatar Aug 02 '21 09:08 donmor

It's weird to say that but... it is possible that some of system APIs was implemented differently between AVD(pixel) and samsung's os... The splash activity hides the bars, and is replaced by the main activity, which, by default, makes the bars shown. But if the UI is not reset upon changing activity... What if entering the app and change to landscape, then back to the desktop while keeping the phone horizontal?

donmor avatar Aug 02 '21 09:08 donmor

Any screenshots? I'm trying to reproduce it but nothing wrong happened yet.

Attached.

Screenshot_20210802-201220_One UI Home

It's weird to say that but... it is possible that some of system APIs was implemented differently between AVD(pixel) and samsung's os... The splash activity hides the bars, and is replaced by the main activity, which, by default, makes the bars shown. But if the UI is not reset upon changing activity... What if entering the app and change to landscape, then back to the desktop while keeping the phone horizontal?

I noticed if I try to add another widget then the status bar returns.

Dialga avatar Aug 04 '21 06:08 Dialga

Now you can checkout the latest 2.2.0-pre version here (This is a pre-release with a debug package)

I refactored the splash screen in recent commits, and added WebDAV support which can be helpful to avoid problem like #23 .

donmor avatar Feb 05 '22 07:02 donmor

Is your problem solved? I may close this if no response received for a long time.

donmor avatar Mar 05 '23 07:03 donmor

No more reports for nearly 2 years. Closing this. Reopen it if you're still concerned.

donmor avatar Mar 10 '23 14:03 donmor