This repository was archived by the owner on May 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-28
lines changed Expand file tree Collapse file tree 6 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,6 @@ static void PlatformShowSettingsUI()
59
59
60
60
var flags = ActivityFlags . NewTask | ActivityFlags . NoHistory | ActivityFlags . ExcludeFromRecents ;
61
61
62
- #if __ANDROID_24__
63
- if ( Platform . HasApiLevelN )
64
- flags |= ActivityFlags . LaunchAdjacent ;
65
- #endif
66
62
settingsIntent . SetFlags ( flags ) ;
67
63
68
64
context . StartActivity ( settingsIntent ) ;
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ static Task PlatformComposeAsync(EmailMessage message)
21
21
{
22
22
var intent = CreateIntent ( message ) ;
23
23
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
24
- #if __ANDROID_24__
25
- if ( Platform . HasApiLevelN )
26
- flags |= ActivityFlags . LaunchAdjacent ;
27
- #endif
24
+
28
25
intent . SetFlags ( flags ) ;
29
26
30
27
Platform . AppContext . StartActivity ( intent ) ;
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ static Task PlatformOpenAsync(Uri uri)
26
26
{
27
27
var intent = new Intent ( Intent . ActionView , AndroidUri . Parse ( uri . OriginalString ) ) ;
28
28
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
29
- #if __ANDROID_24__
30
- if ( Platform . HasApiLevelN )
31
- flags |= ActivityFlags . LaunchAdjacent ;
32
- #endif
29
+
33
30
intent . SetFlags ( flags ) ;
34
31
35
32
Platform . AppContext . StartActivity ( intent ) ;
@@ -46,10 +43,7 @@ static Task PlatformOpenAsync(OpenFileRequest request)
46
43
47
44
var chooserIntent = Intent . CreateChooser ( intent , request . Title ?? string . Empty ) ;
48
45
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
49
- #if __ANDROID_24__
50
- if ( Platform . HasApiLevelN )
51
- flags |= ActivityFlags . LaunchAdjacent ;
52
- #endif
46
+
53
47
chooserIntent . SetFlags ( flags ) ;
54
48
55
49
Platform . AppContext . StartActivity ( chooserIntent ) ;
Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ static void StartIntent(string uri)
62
62
{
63
63
var intent = new Intent ( Intent . ActionView , AndroidUri . Parse ( uri ) ) ;
64
64
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
65
- #if __ANDROID_24__
66
- if ( Platform . HasApiLevelN )
67
- flags |= ActivityFlags . LaunchAdjacent ;
68
- #endif
65
+
69
66
intent . SetFlags ( flags ) ;
70
67
71
68
Platform . AppContext . StartActivity ( intent ) ;
Original file line number Diff line number Diff line change @@ -47,10 +47,7 @@ static void PlatformOpen(string number)
47
47
var dialIntent = ResolveDialIntent ( phoneNumber ) ;
48
48
49
49
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
50
- #if __ANDROID_24__
51
- if ( Platform . HasApiLevelN )
52
- flags |= ActivityFlags . LaunchAdjacent ;
53
- #endif
50
+
54
51
dialIntent . SetFlags ( flags ) ;
55
52
56
53
Platform . AppContext . StartActivity ( dialIntent ) ;
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ static Task PlatformComposeAsync(SmsMessage message)
21
21
var intent = CreateIntent ( message ? . Body , message ? . Recipients ) ;
22
22
23
23
var flags = ActivityFlags . ClearTop | ActivityFlags . NewTask ;
24
- #if __ANDROID_24__
25
- if ( Platform . HasApiLevelN )
26
- flags |= ActivityFlags . LaunchAdjacent ;
27
- #endif
24
+
28
25
intent . SetFlags ( flags ) ;
29
26
30
27
Platform . AppContext . StartActivity ( intent ) ;
You can’t perform that action at this time.
0 commit comments