-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84be4f6
commit f87314d
Showing
35 changed files
with
89 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 10 additions & 16 deletions
26
Nearby Sharing Windows/Layout/BottomSheetBehaviorCallback.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
using Android.App; | ||
using Android.Views; | ||
using Android.Views; | ||
using Google.Android.Material.BottomSheet; | ||
|
||
namespace Nearby_Sharing_Windows.Layout | ||
namespace Nearby_Sharing_Windows.Layout; | ||
|
||
public class BottomSheetBehaviorCallback(Activity activity) : BottomSheetBehavior.BottomSheetCallback | ||
{ | ||
public class BottomSheetBehaviorCallback : BottomSheetBehavior.BottomSheetCallback | ||
{ | ||
public Activity Activity { get; private set; } | ||
public BottomSheetBehaviorCallback(Activity activity) | ||
{ | ||
this.Activity = activity; | ||
} | ||
public Activity Activity { get; private set; } = activity; | ||
|
||
public override void OnSlide(View bottomSheet, float newState) { } | ||
public override void OnSlide(View bottomSheet, float newState) { } | ||
|
||
public override void OnStateChanged(View p0, int p1) | ||
{ | ||
if (p1 == BottomSheetBehavior.StateHidden) | ||
Activity.Finish(); | ||
} | ||
public override void OnStateChanged(View p0, int p1) | ||
{ | ||
if (p1 == BottomSheetBehavior.StateHidden) | ||
Activity.Finish(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Microsoft.ConnectedDevices.NearShare/ShortDev.Microsoft.ConnectedDevices.NearShare.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
ShortDev.Microsoft.ConnectedDevices/Exceptions/CdpProtocolException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace ShortDev.Microsoft.ConnectedDevices.Exceptions; | ||
|
||
public sealed class CdpProtocolException : CdpException | ||
public sealed class CdpProtocolException(string msg) : CdpException(msg) | ||
{ | ||
public CdpProtocolException(string msg) : base(msg) { } | ||
} |
3 changes: 1 addition & 2 deletions
3
ShortDev.Microsoft.ConnectedDevices/Exceptions/CdpSecurityException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace ShortDev.Microsoft.ConnectedDevices.Exceptions; | ||
|
||
public sealed class CdpSecurityException : CdpException | ||
public sealed class CdpSecurityException(string msg) : CdpException(msg) | ||
{ | ||
public CdpSecurityException(string msg) : base(msg) { } | ||
} |
3 changes: 1 addition & 2 deletions
3
ShortDev.Microsoft.ConnectedDevices/Exceptions/CdpSessionException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace ShortDev.Microsoft.ConnectedDevices.Exceptions; | ||
|
||
public sealed class CdpSessionException : CdpException | ||
public sealed class CdpSessionException(string msg) : CdpException(msg) | ||
{ | ||
public CdpSessionException(string msg) : base(msg) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.