Repository navigation
|
Sorry if this is another dumb question. Is the screen number limited to 9?! I am unable to create more than 9 screens. I reinstaled the latest Supernova, I tried previous ver 0.29. After creating 9 screens, I am unable to create the 10th. Can't see any mention about this kind of limitation. Update: I tried on another device and also stuck on 9 max. Is there a way to remove this limitation?! I like my apps grouped specyfic way and I need more than 9 screens. |
Replies: 2 comments 1 reply
|
Yes, 9 home screens is a hard-coded maximum in Supernova right now, and there is no setting to raise it. The limit is a constant in the repository class: Supernova/app/src/main/java/com/supernova/launcher/data/LauncherRepository.kt Lines 1598 to 1599 in 4d41043 // Shared with the surfaces that offer an add-page control.
const val MAX_PAGES = 9Every place that can add a page checks it:
That is why you see the same behavior after a reinstall, on 0.29, and on another device. It is not a bug in your setup. Importing a layout from a backup or another launcher will not get around it either. The converter clamps the page count to the same limit, and items on pages past the 9th are dropped and counted as skipped: If you need more pages, the value has to change in the code. You could open a feature request asking for a higher limit. Until then, putting some of your groups into folders on the existing 9 pages is the only way to fit more groups. Checked against commit 4d41043 (versionName v0.3.0) by reading the source. Nothing was built or run. |
|
Thanks for explaining. But OMG why?! Why hardcode such a strict limit?! I am usually using like 13 screens - I set my home screen in the middle and add 6 screens in each direction and add some gestures from Gesture Suite for fast navigation. DEV: Please remove this limit entirely (best solution) or raise it to like 20 at least. |
Yes, 9 home screens is a hard-coded maximum in Supernova right now, and there is no setting to raise it.
The limit is a constant in the repository class:
Supernova/app/src/main/java/com/supernova/launcher/data/LauncherRepository.kt
Lines 1598 to 1599 in 4d41043
Every place that can add a page checks it:
addPage()clamps the page count withcoerceAtMost(MAX_PAGES), andaddPageFirst()does nothing once you are at the limit:Supernova/app/src/main/java/com/supernova/launcher/data/LauncherRepository.kt