ChangeDetection icon indicating copy to clipboard operation
ChangeDetection copied to clipboard

Allow "Open in Browser" from Notification

Open newhinton opened this issue 2 years ago • 1 comments

It would be nice if change-notifications would have an action that opens the changed site in a browser.

Currently one has to open the app, wait for it to redraw, find the changed item, open that item and only then open it in the browser. It would be nice to have a shortcut.

Thanks!

newhinton avatar Feb 19 '23 21:02 newhinton

I assume adding

            .actions {
                add(
                    NotificationCompat.Action(
                    R.drawable.ic_open_browser,
                    context.getString(R.string.open_in_browser),
                    PendingIntent.getService(context,
                        0,
                        Intent(Intent.ACTION_VIEW).setData(Uri.parse(newSite.url)),
                        0)
                ))
            }

to OneTimeSync.kt:L164 will add this. Though i cant get the app to build with android studio, are there any special reqirements?

newhinton avatar Feb 19 '23 22:02 newhinton