summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Forms.cs
diff options
context:
space:
mode:
authorChris King <kingces95@gmail.com>2016-03-25 13:53:19 -0700
committerChris King <kingces95@gmail.com>2016-03-25 13:53:19 -0700
commitb3365b7f7db2ab9505d9f0c704f86dd3b24b0caa (patch)
tree3e9c78ed3397f34d54daed530da2a7669c7f63b4 /Xamarin.Forms.Platform.Android/Forms.cs
parent03c84382c7bfa6d8712e07dfa48e569f9a9b66a7 (diff)
downloadxamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.gz
xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.bz2
xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.zip
Reformat using statements
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Forms.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/Forms.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Android/Forms.cs b/Xamarin.Forms.Platform.Android/Forms.cs
index 8eb50380..b2ded248 100644
--- a/Xamarin.Forms.Platform.Android/Forms.cs
+++ b/Xamarin.Forms.Platform.Android/Forms.cs
@@ -161,7 +161,7 @@ namespace Xamarin.Forms
CheckOrientationChanged(_formsActivity.Resources.Configuration.Orientation);
formsActivity.ConfigurationChanged += ConfigurationChanged;
- using(DisplayMetrics display = formsActivity.Resources.DisplayMetrics)
+ using (DisplayMetrics display = formsActivity.Resources.DisplayMetrics)
{
_scalingFactor = display.Density;
_pixelScreenSize = new Size(display.WidthPixels, display.HeightPixels);
@@ -352,8 +352,8 @@ namespace Xamarin.Forms
public async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken)
{
- using(var client = new HttpClient())
- using(HttpResponseMessage response = await client.GetAsync(uri, cancellationToken))
+ using (var client = new HttpClient())
+ using (HttpResponseMessage response = await client.GetAsync(uri, cancellationToken))
return await response.Content.ReadAsStreamAsync();
}
@@ -366,8 +366,8 @@ namespace Xamarin.Forms
{
get
{
- using(Looper my = Looper.MyLooper())
- using(Looper main = Looper.MainLooper)
+ using (Looper my = Looper.MyLooper())
+ using (Looper main = Looper.MainLooper)
return my != main;
}
}
@@ -415,13 +415,13 @@ namespace Xamarin.Forms
val = 0;
try
{
- using(var value = new TypedValue())
+ using (var value = new TypedValue())
{
if (Context.Theme.ResolveAttribute(appearance, value, true))
{
var textSizeAttr = new[] { Resource.Attribute.TextSize };
const int indexOfAttrTextSize = 0;
- using(TypedArray array = Context.ObtainStyledAttributes(value.Data, textSizeAttr))
+ using (TypedArray array = Context.ObtainStyledAttributes(value.Data, textSizeAttr))
{
val = Context.FromPixels(array.GetDimensionPixelSize(indexOfAttrTextSize, -1));
return true;