-
Notifications
You must be signed in to change notification settings - Fork 1.3k
remove "add private browsing shortcut" from settings if already on home screen #5233
Comments
This should be possible on API 25 and above using |
I don't think the "Add private browsing shortcut" should be thought of as a "once and for all" operation. If the user happens to delete the shortcut (either intentionally or by accident) there would be no way to add it back if the item in the settings is removed. |
Agreed, it should only be hidden if we detect that the shortcut present on the homescreen. |
Well, this is totally clear, that why I didn't mention it explicitly. ;-) Of course the menu item has to reappear if the shortcut will be removed. Otherwise my proposal wouldn't make sense. You should never get into a situation in which you can't access a feature. |
Sounds like we agree then that it isn't an "item you use once and for all". |
Your last comment was not necessary. That's splitting hairs… It is a "item you use once and for all" - until you remove it. Of course after removing the shortcut you're in the same situation than before adding the shortcut. There is really no need for me to mention the obvious and no need for you to start a discussion about how I wrote one specific sentence - it doesn't contribute any useful to this issue… |
Clarity in describing a feature is essential and necessary, and not "splitting hairs" at all. My original comment did contribute usefully to clarifying what needed to be implemented for this issue. Your follow up comment was not necessary and sounded rather defensive and dismissive. |
Just noticed that the PrivateShortcutCreateManager method gets called within both SettingsFragment and HomeFragment, so it seems like the fix for the settings menu should be added to the home also. I would be happy to take on implementing this feature. |
Tiger,
I implemented this new feature, but as you pointed out the use of the
getPinnedShortcuts method required API 25. I had to bumped the
minSdkVersion from 21 to 25 in Config.kt and build.gradle to get it to
compile.
Is there a better way to handle this more localized to the new code. Maybe
only doing the check for the shortcut if firefox is running on API 25 or
later?
Thanks, Bill
|
Hi Bill, as you mentioned you can just check if the shortcut is present in API 25 and above. You can see examples of this where we have |
My name is Meagan, and I am applying for outreachy.Has anyone been assigned this issue? |
Hi Meagan, bwse has already been assigned to this issue. Here are some other issues that we need help with: |
Thanks so much @NotWoods |
…st function to determine whether a shortcut already exists (only available in API >=25).
…rtcutExist function to determine whether the "add private browing shortcut" item is visible in the settings menu.
…rtcutExist function to determine whether the "recommend private browing shortcut" dialog is displayed.
Tiger,
I submitted PR #5775 to close issue #5233. I wasn't sure how to add a
reviewer to the PR, or if that should be you or not.
Thanks, Bill
…_____
<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient>
https://secureimages.mcafee.com/common/affiliateImages/mfe/logo.png
Scanned by McAfee
<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient> and confirmed virus-free.
|
…st function to determine whether a shortcut already exists (only available in API >=25).
…rtcutExist function to determine whether the "add private browing shortcut" item is visible in the settings menu.
…rtcutExist function to determine whether the "recommend private browing shortcut" dialog is displayed.
…st function to determine whether a shortcut already exists (only available in API >=25).
…rtcutExist function to determine whether the "add private browing shortcut" item is visible in the settings menu.
…rtcutExist function to determine whether the "recommend private browing shortcut" dialog is displayed.
I don't know if it's possible at all. But after adding a private browsing shortcut to the Android home screen there is no longer a need to have the "add private browsing shortcut" item in the settings. It's a item you use once and for all but it stays permanently visible on the first level of the settings.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: