Skip to content

Commit

Permalink
Fix android launcher return values (AvaloniaUI#15601)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 authored May 4, 2024
1 parent 262c1b0 commit 8c88a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Android/Avalonia.Android/Platform/AndroidLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public Task<bool> LaunchUriAsync(Uri uri)
var flags = ActivityFlags.ClearTop | ActivityFlags.NewTask;
intent.SetFlags(flags);
_context.StartActivity(intent);
return Task.FromResult(true);
}
}
return Task.FromResult(false);
Expand All @@ -49,6 +50,7 @@ public Task<bool> LaunchFileAsync(IStorageItem storageItem)
var flags = ActivityFlags.ClearTop | ActivityFlags.NewTask;
chooserIntent.SetFlags(flags);
_context.StartActivity(chooserIntent);
return Task.FromResult(true);
}
}
return Task.FromResult(false);
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Platform/IInputPane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Avalonia.Controls.Platform
public interface IInputPane
{
/// <summary>
/// The current input pane state
/// The current input pane state.
/// </summary>
InputPaneState State { get; }

Expand Down

0 comments on commit 8c88a8e

Please sign in to comment.