Skip to content

Commit

Permalink
Merge pull request #65 from hiroxpepe/develop
Browse files Browse the repository at this point in the history
refactor: #13 keeping codes clean.
  • Loading branch information
hiroxpepe authored Mar 3, 2022
2 parents fbb995c + e32e170 commit e5b5920
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MidiPlayer.Droid/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override void OnRequestPermissionsResult(int requestCode, string[] permis
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}

protected override void OnCreate(Bundle savedInstanceState) {
protected override void OnCreate(Bundle? savedInstanceState) {
base.OnCreate(savedInstanceState);
requestPermissions();
Platform.Init(this, savedInstanceState);
Expand Down Expand Up @@ -107,7 +107,7 @@ protected override void OnDestroy() {
}
}

protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data) {
protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent? data) {
switch (requestCode) {
case (int) Request.SoundFont:
_soundFontPath = getActualPathBy(data);
Expand Down
6 changes: 3 additions & 3 deletions MidiPlayer.FluidSynth/Synth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class Synth {

static Action<object, PropertyChangedEventArgs> _onUpdated;

static string _soundFontPath;
static string _soundFontPath = string.Empty;

static string _midiFilePath;
static string _midiFilePath = string.Empty;

static SoundFontInfo _soundFontInfo;

Expand Down Expand Up @@ -439,7 +439,7 @@ public Track(int index) {
/// <summary>
/// implementation for INotifyPropertyChanged
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
public event PropertyChangedEventHandler? PropertyChanged;

///////////////////////////////////////////////////////////////////////////////////////////
// Properties [noun, noun phrase, adjective]
Expand Down

0 comments on commit e5b5920

Please sign in to comment.