diff --git a/nMAC/Logger.cs b/nMAC/Logger.cs index 7617f09..b76b46e 100644 --- a/nMAC/Logger.cs +++ b/nMAC/Logger.cs @@ -8,7 +8,7 @@ namespace nMAC { internal class Logger { - private TextView _txtLog; + private readonly TextView _txtLog; internal Logger(Context context) { diff --git a/nMAC/MACFunctions.cs b/nMAC/MACFunctions.cs index ca3013e..fa48fc8 100644 --- a/nMAC/MACFunctions.cs +++ b/nMAC/MACFunctions.cs @@ -11,6 +11,8 @@ namespace nMAC { internal static class MACFunctions { + private const string UnsupportedDeviceMessage = @"Sorry, this device not supported. +Please contact me if you want to make it work!"; internal static string MACFile; internal static string LocalMACFile; internal static string BackupMACFile; @@ -23,8 +25,7 @@ internal static async Task AssignPaths(Context context) if (device == null) { - Helpers.ShowCriticalError(context, @"Sorry, this device not supported. -Please contact me if you want to make it work!"); + Helpers.ShowCriticalError(context, UnsupportedDeviceMessage); return; } @@ -76,8 +77,7 @@ internal static string ReadMAC(Context context) if (!Device.CheckFile(content)) { - Helpers.ShowCriticalError(context, @"Sorry, this device not supported. -Please contact me if you want to make it work!"); + Helpers.ShowCriticalError(context, UnsupportedDeviceMessage); return null; } diff --git a/nMAC/MainActivity.cs b/nMAC/MainActivity.cs index 7e70249..d77886c 100644 --- a/nMAC/MainActivity.cs +++ b/nMAC/MainActivity.cs @@ -20,30 +20,30 @@ protected override async void OnCreate(Bundle bundle) { base.OnCreate(bundle); - SetContentView(Resource.Layout.Main); + this.SetContentView(Resource.Layout.Main); ToggleViews(false); - Button btnRandomize = FindViewById