Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support private tabs for FireFox#1216

Merged
MV-GH merged 5 commits into
LemmyNet:mainfrom
dankeast:firefox-private-tabs
Sep 4, 2023
Merged

Support private tabs for FireFox#1216
MV-GH merged 5 commits into
LemmyNet:mainfrom
dankeast:firefox-private-tabs

Conversation

@MV-GH MV-GH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this in the else section of the useCustomTab

        if (usePrivateTab) {
            intent.putExtra("com.google.android.apps.chrome.EXTRA_OPEN_NEW_INCOGNITO_TAB", true)
            intent.putExtra("private_browsing_mode", true)
        }

It is supposed to work too if you don't use a customtab

@dankeast

dankeast commented Sep 4, 2023

Copy link
Copy Markdown
Contributor Author

Add this in the else section of the useCustomTab

        if (usePrivateTab) {
            intent.putExtra("com.google.android.apps.chrome.EXTRA_OPEN_NEW_INCOGNITO_TAB", true)
            intent.putExtra("private_browsing_mode", true)
        }

It is supposed to work too if you don't use a customtab

The option in the menu is "Use private custom tabs if available" so I just followed the current pattern for Chrome. This makes a lot of sense though, so I've changed this to always send the extras if the option is set, and update the option in the menu

Comment thread app/src/main/res/values/strings.xml
@MV-GH MV-GH enabled auto-merge (squash) September 4, 2023 16:35
@MV-GH MV-GH merged commit 86674b9 into LemmyNet:main Sep 4, 2023
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

Successfully merging this pull request may close these issues.

3 participants