Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Add notification action for 'Erase + Start from Home View' #870

Closed
antlam opened this issue Jul 6, 2017 · 17 comments
Closed

Add notification action for 'Erase + Start from Home View' #870

antlam opened this issue Jul 6, 2017 · 17 comments
Assignees
Labels
Milestone

Comments

@antlam
Copy link
Contributor

antlam commented Jul 6, 2017

From @bbinto (and I'm paraphrasing obvs)

What if we had another notification action that allowed the user to 'Erase' their current browsing session and 'Open' Focus at the same time? Sometimes I want to just fire off a new search with Focus but I'm in another app.

@antlam
Copy link
Contributor Author

antlam commented Jul 6, 2017

@pocmo how hard would this be?

@mheubusch this is going to be a bit more complicated than 'Open'. Do you have thoughts on this?

@pocmo pocmo added needs triage and removed v1.1 labels Jul 7, 2017
@pocmo
Copy link
Contributor

pocmo commented Jul 7, 2017

Stop. No new features in 1.1 (I removed the label and added the triage label).

I wonder if this could be something for a shortcut action?

Anyhow: I think that's doable. And after #832 this will be "just" switching to the app and erase. Immediately being able to type a new URL / search will be the default for all.

@pocmo pocmo added v2.x and removed needs triage labels Jul 11, 2017
@bbinto
Copy link
Contributor

bbinto commented Jul 14, 2017

@bbinto bbinto added this to the 2.0 milestone Jul 14, 2017
@ekager ekager self-assigned this Jul 20, 2017
@pocmo
Copy link
Contributor

pocmo commented Jul 21, 2017

@antlam @BBermes Maybe this is also a good thing for adding as a shortcut?

@antlam
Copy link
Contributor Author

antlam commented Jul 21, 2017

Shortcuts from the Home screen? Would it be something like "Erase" and "Erase and start a new search"? that could work!... 🤔

@bbinto
Copy link
Contributor

bbinto commented Jul 24, 2017

@pocmo yes, in addition to the existing shortcut (Erase), we could add the "Erase & start new search". However, would this still make sense though after we do #832?

@bbinto bbinto modified the milestones: 2.0, Aqua Jul 26, 2017
@pocmo pocmo removed this from the Aqua milestone Jul 26, 2017
@bbinto bbinto modified the milestone: Aqua Jul 26, 2017
@mheubusch
Copy link

mheubusch commented Jul 27, 2017

Final reco:
ERASE AND OPEN
OPEN

@mheubusch
Copy link

screenshot_2017-07-27-17-46-59

@pocmo
Copy link
Contributor

pocmo commented Jul 28, 2017

I'll add the string to the repo (and export) today.

@antlam We also need to decide what icon we want to show in the notification on older devices. The firefox like for open - or the trash can? or something else?

@antlam
Copy link
Contributor Author

antlam commented Jul 28, 2017

@pocmo is it ok if we dont supply an icon?

@ekager ekager removed their assignment Jul 28, 2017
@pocmo
Copy link
Contributor

pocmo commented Aug 1, 2017

@antlam The API for adding an action to a notification requires supplying an icon. On my Z3C it works if I do not specifiy a valid icon resource id (see screenshot below). However it's not mentioned in the docs that this is supported. So this could be fragile. We would need to test on a variety of devices and (older) Android versions to be sure.

notification_without_icon

@pocmo pocmo self-assigned this Aug 1, 2017
@bbinto bbinto removed the Aqua label Aug 1, 2017
@antlam
Copy link
Contributor Author

antlam commented Aug 1, 2017

@pocmo can we use the material rubbish bin? the same one on the FAB

@pocmo
Copy link
Contributor

pocmo commented Aug 1, 2017

@antlam I just noticed that it suddenly does not fit on the small Z3C (in portrait only) when adding the icon.

erase_and_open_size

@pocmo
Copy link
Contributor

pocmo commented Aug 1, 2017

I merged the patch so that we can try it on multiple devices.

Regarding the problem mentioned above, we could:

  • Live with it. Only small devices with an older version of Android (that shows the icon) are affected.
  • Try to ship without showing an icon (but see concerns above)
  • Not ship this feature and update the string in the next version (I am very concerned about the size of the string in other languages now.)
  • Something else?

^-- @antlam @bbinto

@antlam
Copy link
Contributor Author

antlam commented Aug 2, 2017

I'm fine with this as is actually. I'm not too worried about it.

But something like "Reset" or "Restart" might work? I'll let @mheubusch make the call if she wants to change it.

@bbinto
Copy link
Contributor

bbinto commented Aug 2, 2017

Definitely not a blocker for this release, and bullet one seems fine for me.

@pocmo
Copy link
Contributor

pocmo commented Aug 2, 2017

Alright. I'll close this issue and we can file a new one for one of the upcoming releases if we decide to change something.

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

No branches or pull requests

5 participants