cylonid / NativeAlphaForAndroid

GNU General Public License v3.0
640 stars 58 forks source link

Issue adding shortcut to multiple screens. #82

Open ShapeShifter499 opened 1 year ago

ShapeShifter499 commented 1 year ago

Hello, I'm a Samsung Z Fold 4 user. I'm using the paid plus version from the play store.

The issue is I can't seem to make more than one shortcut for the same website on the cover screen and the folding screen at the same time. If I create the shortcut while the folded screen is active then try to create it again using "re-create shortcut" I get an error "A shortcut with this name already exists".

I could set my phone so it "mirrors" the layout from the cover screen to the folding screen but I then lose the ability to make certain sized widgets on the folding screen. That's why I have it the way it is now, the layout set to be separate for both screens.

I think a good solution would be to allow for multiple shortcuts to be created for each website container if it's possible. Can this be added please?

cylonid commented 1 year ago

then try to create it again using "re-create shortcut" I get an error "A shortcut with this name already exists".

This is expected, Android doesn't support multiple shortcuts with the same title.

Just enter a different title the second time you create the shortcut and you should be fine (even a space character at the end is enough).

ShapeShifter499 commented 1 year ago

That works, thank you. Didn't even occur to me to try that.

But can confirm adding a space after the name I want for the new shortcut allows me to put one on the folding screen and the cover screen.

ShapeShifter499 commented 1 year ago

I guess I'll close this. Maybe a footnote could be added to the documentation about this. But this issue is solved for me. Thank you for making this app.

ShapeShifter499 commented 1 year ago

@cylonid I'm reopening this issue. I've noticed that if I create multiple shortcuts by adding a space to the name it creates two instances. For example: If I have a already running webapp from the folded screen, going to start it again using the other shortcut on the cover screen seems to start a new instance, like a new tab but as a app.

This issue comes up if I either forgot I had already opened it before or decide for whatever reason to tap the shortcut instead of the recents switcher like I tend to do after folding the phone shut but continuing to use the cover screen.

Is this intended? Shouldn't all shortcuts made with one container link back to the active instance of that container instead of making a new one?