Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "Open in Browser" from Notification #51

Open
newhinton opened this issue Feb 19, 2023 · 1 comment
Open

Allow "Open in Browser" from Notification #51

newhinton opened this issue Feb 19, 2023 · 1 comment

Comments

@newhinton
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant