plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.05k stars 77 forks source link

When launching einkbro a new tab is always created. #334

Closed AJolly closed 5 months ago

AJolly commented 5 months ago

When you run this directly from a launcher, it always creates a new tab rather than showing you the most recently used tab. This is nonstandard (and means you can't easily switch back to einkbro from a quicklauncher)

AJolly commented 5 months ago

(If it helps, I'm using eink bro with a boox page and want to add it to the navball quick launch, but right now it always opens a new tab.

plateaukao commented 5 months ago

navball quick launch is not a normal launcher. If you can launch einkbro in BOOX page home screen from background without creating new tab, and it only happens when using navball; then it must be navball doing something different. I don't know what it did to cause this issue.

AJolly commented 5 months ago

I ran some tests - I think it's the behavior of the intent android.intent.action.VIEW.

If you call Chrome with that intent for example, it shows your last open tab.

(Tested using shortcut maker)

If you do it w/einkbro it force opens a new page.

I appreciate this app by the way, you like how I can automatically force a white background.

plateaukao commented 5 months ago

I ran some tests - I think it's the behavior of the intent android.intent.action.VIEW.

If you call Chrome with that intent for example, it shows your last open tab.

(Tested using shortcut maker)

If you do it w/einkbro it force opens a new page.

I appreciate this app by the way, you like how I can automatically force a white background.

thanks for the debugging. I changed the behavior when there's no url attached with action_view. hopefully it's fixed in snapshot version.