mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
[Android] Add missing conditionals
This commit is contained in:
parent
7c9974a453
commit
5f61812b7f
2 changed files with 3 additions and 3 deletions
|
@ -306,7 +306,7 @@ namespace CalculationManager
|
||||||
|
|
||||||
internal static IntPtr StringToHGlobal(string resourceValue)
|
internal static IntPtr StringToHGlobal(string resourceValue)
|
||||||
{
|
{
|
||||||
#if __WASM__ || __IOS__
|
#if __WASM__ || __IOS__ || __ANDROID__
|
||||||
// wchar_t is 32bits
|
// wchar_t is 32bits
|
||||||
return StringToHGlobalUTF32(resourceValue);
|
return StringToHGlobalUTF32(resourceValue);
|
||||||
#else
|
#else
|
||||||
|
@ -316,7 +316,7 @@ namespace CalculationManager
|
||||||
|
|
||||||
internal static string PtrToString(IntPtr pResourceId)
|
internal static string PtrToString(IntPtr pResourceId)
|
||||||
{
|
{
|
||||||
#if __WASM__ || __IOS__
|
#if __WASM__ || __IOS__ || __ANDROID__
|
||||||
return PtrToStringUTF32(pResourceId);
|
return PtrToStringUTF32(pResourceId);
|
||||||
#else
|
#else
|
||||||
return Marshal.PtrToStringUni(pResourceId);
|
return Marshal.PtrToStringUni(pResourceId);
|
||||||
|
|
|
@ -574,7 +574,7 @@ namespace CalculatorApp.ViewModel
|
||||||
|
|
||||||
m_decimalSeparator = LocalizationSettings.GetInstance().GetDecimalSeparator();
|
m_decimalSeparator = LocalizationSettings.GetInstance().GetDecimalSeparator();
|
||||||
|
|
||||||
#if !__WASM__ && !__IOS__
|
#if !__WASM__ && !__IOS__ && !__ANDROID__
|
||||||
if (CoreWindow.GetForCurrentThread() != null)
|
if (CoreWindow.GetForCurrentThread() != null)
|
||||||
{
|
{
|
||||||
// Must have a CoreWindow to access the resource context.
|
// Must have a CoreWindow to access the resource context.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue