/// <summary> /// Settings saving /// </summary> private void SaveSettings() { Settings.ColumnsCount = _selectedColumnsCount; Settings.Language = _selectedLang; Settings.Save(); this.Resources.Configuration.SetLocale(new Java.Util.Locale(Settings.Language)); this.Resources.UpdateConfiguration(this.Resources.Configuration, this.Resources.DisplayMetrics); if (_oldPassword.Text != string.Empty && _newPassword.Text != string.Empty && _confirmPassword.Text != string.Empty) { try { SecurityProvider.EnrollNewPassword(_oldPassword.Text, _newPassword.Text, _confirmPassword.Text); } catch (Exception ex) { Toast.MakeText(this, ex.Message, ToastLength.Long).Show(); } } }