Skip to content

Commit 098472b

Browse files
authored
Merge pull request #2484 from brandonpage/LoginActivity-SingleTop
Change launch mode of LoginActivity from singleInstance to singleTop.
2 parents 6b2a599 + 17f1a9a commit 098472b

6 files changed

Lines changed: 6 additions & 36 deletions

File tree

hybrid/HybridSampleApps/AccountEditor/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
</activity>
3131

3232
<!-- Login activity -->
33-
<!--
34-
Launch mode of "singleInstance" ensures that the activity isn't restarted
35-
by a callback from Chrome custom tab when auth flow is complete. This is
36-
required for the Chrome custom tab auth flow to work correctly.
37-
-->
3833
<!--
3934
To enable browser based authentication, uncomment the lines below and replace
4035
'scheme', 'host' and 'path' with their corresponding values from your connected app.
@@ -51,7 +46,7 @@
5146
<!--
5247
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
5348
android:theme="@style/SalesforceSDK"
54-
android:launchMode="singleInstance"
49+
android:launchMode="singleTop"
5550
android:exported="true">
5651
5752
<intent-filter>

hybrid/HybridSampleApps/MobileSyncExplorerHybrid/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
</activity>
3232

3333
<!-- Login activity -->
34-
<!--
35-
Launch mode of "singleInstance" ensures that the activity isn't restarted
36-
by a callback from Chrome custom tab when auth flow is complete. This is
37-
required for the Chrome custom tab auth flow to work correctly.
38-
-->
3934
<!--
4035
To enable browser based authentication, uncomment the lines below and replace
4136
'scheme', 'host' and 'path' with their corresponding values from your connected app.
@@ -52,7 +47,7 @@
5247
<!--
5348
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
5449
android:theme="@style/SalesforceSDK"
55-
android:launchMode="singleInstance"
50+
android:launchMode="singleTop"
5651
android:exported="true">
5752
5853
<intent-filter>

libs/SalesforceSDK/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@
3737
</service>
3838

3939
<!-- Login activity -->
40-
<!--
41-
Launch mode of "singleInstance" ensures that the activity isn't restarted
42-
by a callback from Chrome custom tab when auth flow is complete. This is
43-
required for the Chrome custom tab auth flow to work correctly.
44-
-->
4540
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
4641
android:theme="@style/SalesforceSDK"
47-
android:launchMode="singleInstance"
42+
android:launchMode="singleTop"
4843
android:screenOrientation="portrait"
4944
android:windowSoftInputMode="adjustNothing"
5045
android:exported="true" />

native/NativeSampleApps/ConfiguredApp/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424

2525
<!-- Login activity -->
2626
<!--
27-
Launch mode of "singleInstance" ensures that the activity isn't restarted
28-
by a callback from Chrome custom tab when auth flow is complete. This is
29-
required for the Chrome custom tab auth flow to work correctly.
30-
-->
31-
<!--
3227
To enable browser based authentication, uncomment the lines below and replace
3328
'scheme', 'host' and 'path' with their corresponding values from your connected app.
3429
@@ -44,7 +39,7 @@
4439
<!--
4540
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
4641
android:theme="@style/SalesforceSDK"
47-
android:launchMode="singleInstance"
42+
android:launchMode="singleTop"
4843
android:exported="true">
4944
5045
<intent-filter>

native/NativeSampleApps/MobileSyncExplorer/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
</activity>
2525

2626
<!-- Login activity -->
27-
<!--
28-
Launch mode of "singleInstance" ensures that the activity isn't restarted
29-
by a callback from Chrome custom tab when auth flow is complete. This is
30-
required for the Chrome custom tab auth flow to work correctly.
31-
-->
3227
<!--
3328
To enable browser based authentication, uncomment the lines below and replace
3429
'scheme', 'host' and 'path' with their corresponding values from your connected app.
@@ -45,7 +40,7 @@
4540
<!--
4641
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
4742
android:theme="@style/SalesforceSDK"
48-
android:launchMode="singleInstance"
43+
android:launchMode="singleTop"
4944
android:exported="true">
5045
5146
<intent-filter>

native/NativeSampleApps/RestExplorer/AndroidManifest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030

3131
<!-- Login activity -->
3232
<!--
33-
Launch mode of "singleInstance" ensures that the activity isn't restarted
34-
by a callback from Chrome custom tab when auth flow is complete. This is
35-
required for the Chrome custom tab auth flow to work correctly.
36-
-->
37-
<!--
3833
To enable browser based authentication, uncomment the lines below and replace
3934
'scheme', 'host' and 'path' with their corresponding values from your connected app.
4035
@@ -49,7 +44,7 @@
4944
-->
5045
<activity android:name="com.salesforce.androidsdk.ui.LoginActivity"
5146
android:theme="@style/SalesforceSDK"
52-
android:launchMode="singleInstance"
47+
android:launchMode="singleTop"
5348
android:exported="true">
5449

5550
<intent-filter>

0 commit comments

Comments
 (0)