Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Minor updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomi Paananen committed Sep 17, 2013
1 parent 4223173 commit 112e1b8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
37 changes: 19 additions & 18 deletions CameraExplorer/ArrayParameter.cs
Expand Up @@ -11,6 +11,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Windows.Phone.Media.Capture;

Expand Down Expand Up @@ -402,24 +403,6 @@ protected override void PopulateOptions()
}
}

/// <summary>
/// The API response on querying whether the AutoFocusRange parameter is supported
/// cannot be trusted on HTC devices at least, see http://bit.ly/11Midmq
/// Until further notice we call the base Refresh implementation only for Nokia devices
/// and asume the feature not to be supported on the other.
/// </summary>
public override void Refresh()
{
if (!DeviceStatus.DeviceManufacturer.Contains("Nokia"))
{
Supported = false;
Modifiable = false;
return;
}

base.Refresh();
}

/// <summary>
/// Handles setting the given option as currently active one.
/// </summary>
Expand Down Expand Up @@ -901,6 +884,24 @@ protected override void PopulateOptions()
}
}

/// <summary>
/// The API response on querying whether the AutoFocusRange parameter is supported
/// cannot be trusted on HTC devices at least, see http://bit.ly/11Midmq
/// Until further notice we call the base Refresh implementation only for Nokia devices
/// and asume the feature not to be supported on the other.
/// </summary>
public override void Refresh()
{
if (CultureInfo.InvariantCulture.CompareInfo.IndexOf(DeviceStatus.DeviceManufacturer, "Nokia", CompareOptions.IgnoreCase) == -1)
{
Supported = false;
Modifiable = false;
return;
}

base.Refresh();
}

/// <summary>
/// Handles setting the given option as currently active one.
/// </summary>
Expand Down
Binary file modified CameraExplorer_Release_ARM.xap
Binary file not shown.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -12,8 +12,9 @@ and tested to work on Nokia Lumia devices with Windows Phone 8.
This example application is hosted in GitHub:
https://github.com/nokia-developer/camera-explorer

For more information on implementation and porting, visit the wiki pages:
https://github.com/nokia-developer/camera-explorer/wiki
For more information on implementation and porting, visit Nokia Lumia
Developer's Library:
http://developer.nokia.com/Resources/Library/Lumia/#!imaging/advanced-photo-capturing/camera-explorer.html


What's new
Expand Down

0 comments on commit 112e1b8

Please sign in to comment.