Richard Pospesel pushed to branch android-components-102.0.14-11.5-1 at The Tor Project / Applications / android-components
Commits:
-
311598f4
by Pier Angelo Vendrame at 2022-11-28T18:45:37+01:00
1 changed file:
Changes:
... | ... | @@ -7,6 +7,7 @@ package mozilla.components.support.utils |
7 | 7 | import android.app.PendingIntent
|
8 | 8 | import android.content.Context
|
9 | 9 | import android.content.Intent
|
10 | +import mozilla.components.support.utils.PendingIntentUtils
|
|
10 | 11 | |
11 | 12 | object TorUtils {
|
12 | 13 | const val TORBROWSER_START_ACTIVITY_PROMPT = "torbrowser_start_activity_prompt"
|
... | ... | @@ -19,7 +20,7 @@ object TorUtils { |
19 | 20 | fun startActivityPrompt(context: Context, intent: Intent) {
|
20 | 21 | val intentContainer = Intent()
|
21 | 22 | intentContainer.setPackage(context.applicationContext.packageName)
|
22 | - intentContainer.putExtra(TORBROWSER_START_ACTIVITY_PROMPT, PendingIntent.getActivity(context, 0, intent, 0))
|
|
23 | + intentContainer.putExtra(TORBROWSER_START_ACTIVITY_PROMPT, PendingIntent.getActivity(context, 0, intent, PendingIntentUtils.defaultFlags))
|
|
23 | 24 | intentContainer.flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
24 | 25 | context.startActivity(intentContainer)
|
25 | 26 | }
|