Skip to content

Commit

Permalink
exclude battery saver options
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-w committed Apr 1, 2019
1 parent c79a05d commit 212c779
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions GeoClient/GeoClient.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ protected override void OnCreate(Bundle savedInstanceState)
RegistrationService.Instance.RegisterListener(this);

RequestCameraPermissionIfNecessary();
RequestBatteryOptimizationWhitelisting();
// Do not request battery optimization to fulfill MDM restrictions.
// RequestBatteryOptimizationWhitelisting();
}

protected override void OnDestroy()
Expand Down Expand Up @@ -103,10 +104,11 @@ private bool IsDataSaverEnabled()

private bool IsDeveloperModeActive()
{
var intOfDevSetting =
Settings.Secure.GetInt(ContentResolver, Settings.Global.DevelopmentSettingsEnabled, 0);
Log.Debug(LoggerTag, "Developer setting enabled returned: " + intOfDevSetting);
return intOfDevSetting != 0;
// var intOfDevSetting =
// Settings.Secure.GetInt(ContentResolver, Settings.Global.DevelopmentSettingsEnabled, 0);
// Log.Debug(LoggerTag, "Developer setting enabled returned: " + intOfDevSetting);
// return intOfDevSetting != 0;
return false;
}

private void PerformXamarinStartup(Bundle savedInstanceState)
Expand Down
2 changes: 1 addition & 1 deletion GeoClient/GeoClient.Android/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="40" android:versionName="1.1.5" package="at.wrk.fmd.cocemocl" android:installLocation="auto">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="36" android:versionName="1.1.4.r1" package="at.wrk.fmd.cocemocl" android:installLocation="auto">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Expand Down
2 changes: 1 addition & 1 deletion GeoClient/GeoClient/Views/AboutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
FontAttributes="Bold"
FontSize="Large" />
<Span
Text="1.1.5"
Text="1.1.4.r1"
FontSize="Large"
ForegroundColor="{StaticResource LightTextColor}" />
</FormattedString.Spans>
Expand Down

0 comments on commit 212c779

Please sign in to comment.