Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Oct 8, 2019
1 parent 588365e commit 548fe8f
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 24 deletions.
4 changes: 2 additions & 2 deletions MediaManager/Media/MediaExtractorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public virtual async Task<IMediaItem> UpdateMediaItem(IMediaItem mediaItem)
{
if (!mediaItem.IsMetadataExtracted)
{
if(string.IsNullOrEmpty(mediaItem.FileExtension))
if (string.IsNullOrEmpty(mediaItem.FileExtension))
{
mediaItem.FileExtension = GetFileExtension(mediaItem);
}
Expand Down Expand Up @@ -225,7 +225,7 @@ public virtual MediaType GetMediaType(IMediaItem mediaItem)
? mediaItem.FileExtension
: GetFileExtension(mediaItem);

if(VideoSuffixes.Contains(fileExtension))
if (VideoSuffixes.Contains(fileExtension))
return MediaType.Video;
else if (AudioSuffixes.Contains(fileExtension))
return MediaType.Audio;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Android.Content;
using Android.Graphics.Drawables;
Expand Down
2 changes: 1 addition & 1 deletion MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private async void ToneInterruptionListener(object sender, AVAudioSessionInterru
await MediaManager.Pause();
break;
case AVAudioSessionInterruptionType.Ended:
if(interruptArgs.Option == AVAudioSessionInterruptionOptions.ShouldResume)
if (interruptArgs.Option == AVAudioSessionInterruptionOptions.ShouldResume)
{
await MediaManager.Play();
}
Expand Down
8 changes: 4 additions & 4 deletions Samples/ElementPlayer.Android/LinkerPleaseInclude.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Android.App;
using System;
using System.Collections.Specialized;
using System.Windows.Input;
using Android.App;
using Android.Views;
using Android.Widget;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Navigation;
using MvvmCross.ViewModels;
using System;
using System.Collections.Specialized;
using System.Windows.Input;

namespace ElementPlayer.Android
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Android.App;
using System.Reflection;
using System.Reflection;
using System.Runtime.InteropServices;
using Android.App;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand Down
4 changes: 2 additions & 2 deletions Samples/ElementPlayer.Forms.Mac/ViewController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AppKit;
using System;
using AppKit;
using Foundation;
using System;

namespace ElementPlayer.Forms.Mac
{
Expand Down
4 changes: 2 additions & 2 deletions Samples/ElementPlayer.Mac/ViewController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AppKit;
using System;
using AppKit;
using Foundation;
using System;

namespace ElementPlayer.Mac
{
Expand Down
8 changes: 4 additions & 4 deletions Samples/ElementPlayer.iOS/LinkerPleaseInclude.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Foundation;
using System;
using System.Collections.Specialized;
using System.Windows.Input;
using Foundation;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Navigation;
using MvvmCross.Platforms.Ios.Views;
using MvvmCross.ViewModels;
using System;
using System.Collections.Specialized;
using System.Windows.Input;
using UIKit;

namespace ElementPlayer.iOS
Expand Down
4 changes: 2 additions & 2 deletions Samples/ElementPlayer.iOS/Views/Cells/MediaCell.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Foundation;
using System;
using Foundation;
using MediaManager.Library;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Platforms.Ios.Binding.Views;
using System;
using UIKit;

namespace ElementPlayer.iOS.Views.Cells
Expand Down
4 changes: 2 additions & 2 deletions Samples/ElementPlayer.iOS/Views/HomeViewController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using ElementPlayer.Core.ViewModels;
using System;
using ElementPlayer.Core.ViewModels;
using ElementPlayer.iOS.Views.Cells;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Platforms.Ios.Binding.Views;
using MvvmCross.Platforms.Ios.Presenters.Attributes;
using MvvmCross.Platforms.Ios.Views;
using System;

namespace ElementPlayer.iOS.Views
{
Expand Down
4 changes: 2 additions & 2 deletions Samples/ElementPlayer.iOS/Views/PlayerViewController.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using ElementPlayer.Core.ViewModels;
using System;
using ElementPlayer.Core.ViewModels;
using MediaManager;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Platforms.Ios.Presenters.Attributes;
using MvvmCross.Platforms.Ios.Views;
using System;

namespace ElementPlayer.iOS.Views
{
Expand Down

0 comments on commit 548fe8f

Please sign in to comment.