Skip to content

Commit 0ee52a5

Browse files
Fix warnings (#24)
1 parent 94d0f78 commit 0ee52a5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

samples/Plugin.Maui.KeyListener.Sample/App.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ public App()
66
{
77
InitializeComponent();
88

9-
MainPage = new AppShell();
9+
}
10+
11+
protected override Window CreateWindow(IActivationState activationState)
12+
{
13+
var shell = new AppShell();
14+
return new Window(shell);
1015
}
1116
}

samples/Plugin.Maui.KeyListener.Sample/MainPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public MainPage()
1111
AddKeyboardBehavior();
1212
}
1313

14-
async void AddKeyboardBehavior()
14+
void AddKeyboardBehavior()
1515
{
1616
var keyboardBehavior = new KeyboardBehavior();
1717
keyboardBehavior.KeyDown += (sender, args) => PrependOutput("KeyDown", args);

0 commit comments

Comments
 (0)