appcenter icon indicating copy to clipboard operation
appcenter copied to clipboard

App Center page opens twice after app launch.

Open nathanaccidentally opened this issue 8 years ago • 5 comments

I have an iPhone 5S on iOS 10.1.1. Whenever I launch an app via App Center I get a duplicate App Center page that can't be closed unless I respring. Other tweaks that are modifying the CC:

  1. Noctis
  2. BlurryCC10
  3. Cream 2

That's all.

nathanaccidentally avatar Feb 23 '17 23:02 nathanaccidentally

I will look into compatibility issues with these tweaks. Noctis is already on the list, the others are not, so I'll check them out.

eswick avatar Feb 24 '17 17:02 eswick

It seems like even disabling all CC tweaks I still get the issue. I guess I'll try uninstalling my other CC tweaks 1 by 1 until I can get it to work and I'll report back.

nathanaccidentally avatar Feb 24 '17 17:02 nathanaccidentally

Ok. After disabling all tweaks one by one, it seems the culprit is Xen Lockscreen.

nathanaccidentally avatar Feb 25 '17 08:02 nathanaccidentally

Sorry about this! My tweak is manually loading all available CC pages onto a Lockscreen page. Compatibility wise, I assume that App Center does not load applications when the device is locked? If so, I'll ensure I don't load them my end.

EDIT: Have resolved the page duplication by a change on my end, dealing now with a frame y-origin issue with application pages then should be done.

EDIT2: This frame issue I'm now seeing is that an application page will have the same y-origin as other CC pages.

Matchstic avatar Feb 25 '17 16:02 Matchstic

Figured it might be easier to create a new comment to document this.

In Xen Lockscreen's Toggles page, I create an instance of XENControlCenterViewController (subclassed from CCUIControlCenterViewController) from which to retrieve available pages via -sortedVisibleViewControllers. This subclass nop's out -_layoutScrollView, and the Toggles page now refuses to add any CCUIControlCenterPageContainerViewController whose contentViewController is of class ACAppSelectionPageViewController or ACAppPageViewController.

In this subclass, I can prevent the addition of App Center pages in -_addContentViewController:, which is my next attempt at resolving the issue from my end as my current work didn't seem to fix it. Since my subclass is only ever used within my own LS pages, I don't anticipate this causing a problem.

Matchstic avatar Feb 25 '17 18:02 Matchstic