Neo-Launcher icon indicating copy to clipboard operation
Neo-Launcher copied to clipboard

Empty homepage keeps getting deleted

Open akoump opened this issue 3 years ago • 2 comments

Description

Even though the "Allow empty pages" option is enabled in settings, the empty page I use as a homepage gets deleted after a while.

Expected Behavior

The empty page should remain the default homepage.

Actual Behavior

I am trying to use an empty page as the default homepage and a page with a single widget as the second page. After a while, the empty page disappears and the single-widget-page becomes the default and only homepage. The deletion seems to be happening at random (I haven't noticed anything specific that triggers it).

I also have the "Hide the status bar" option enabled.

Steps to Reproduce

1.Enable "Allow empty pages" option. 2.Delete everything from the homepage and create a second page (with a single widget). 3.Wait for a while (do random actions with your phone). 4.Observe the empty page getting deleted.

Device and OS

  • Device: Samsung Galaxy A31
  • Android version: 11
  • Launcher version: 0.8.1
  • Rom: OneUI 3.1

akoump avatar Apr 10 '22 19:04 akoump

I have this same problem. For me it happens also when the launcher crashes and when I press the home button on my phone.

3raser95 avatar Aug 12 '22 05:08 3raser95

This bug is easier to reproduce if you just restart the launcher app while you have one or more empty pages. You don't need to "wait for a while" (as the original issue says).

I tried looking into this but I couldn't figure out where the screen deletions are coming from. I even totally removed the Workspace.stripEmptyScreens() method and the bug still occurs.

JimmyCushnie avatar Oct 22 '23 20:10 JimmyCushnie