soul-browser/app/smali_classes4/com/mycompany/app/view
KaKi87 ef6d47fc9d
Some checks are pending
Build APK / build (push) Waiting to run
Add per-tab Homepage to tab long-press menu (#21)
* Add per-tab Homepage action to tab long-press menu

Inspired by Zen Browser pinned tabs: first click (or later long-press)
on Homepage confirms setting the current URL; later clicks navigate to
it. Persists via DbBookTab _rsv1 and is toggleable in the cog submenu.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix tab Homepage menu action and rename label

Correct inverted null/empty checks in TabHomepage that caused click and
long-press to no-op, fix long-press listener wiring in MyPopupMenu, and
use a dedicated tab_homepage string ("Homepage") for the menu item.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix Homepage menu confirm dialog never showing

The URL empty check before DialogConfirm was inverted, so click and
long-press both returned early whenever a valid page URL was available.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Polish tab homepage confirm dialog and success toast

- Remove Tip header from confirm dialog
- Show only "Set as homepage?" as the prompt
- Toast reads "Homepage set" instead of "Has been set."
- Dismiss dialog when homepage is saved

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix IllegalAccessError hiding homepage dialog tip header

Add DialogConfirm constructor that sets d0=false during construction
instead of writing the final field from TabHomepage after the fact.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Show URL in homepage dialog and add Cancel button

Restore URL under the confirm prompt and enable DialogConfirm's
secondary action button with the standard Cancel label.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix tab homepage persistence across app relaunch

Correct inverted guards in DbBookTab.B() that skipped DB writes for
valid tabs, and fix _rsv1 load in DbBookTab.d() that never restored
the homepage URL from the database.

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-12 15:13:43 +02:00
..
MyPopupAdapter$2.smali Add per-tab Homepage to tab long-press menu (#21) 2026-08-12 15:13:43 +02:00