Skip to content

Commit

Permalink
Use new backwards compatibility checking. Also moving documentation t…
Browse files Browse the repository at this point in the history
…o Wiki.
  • Loading branch information
MatthewGerber committed Feb 17, 2015
1 parent 0b58cfd commit 878af1c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 67 deletions.
6 changes: 0 additions & 6 deletions README.md

This file was deleted.

58 changes: 0 additions & 58 deletions RELEASE.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ public override void OnChange(bool selfChange, global::Android.Net.Uri uri)
int type = cursor.GetInt(cursor.GetColumnIndex("type"));

int sentMessageType;

#if __ANDROID_19__
if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat)
sentMessageType = (int)SmsMessageType.Sent; // API level 19
else
#endif
sentMessageType = 2;

if (protocol != null || type != sentMessageType)
Expand Down
5 changes: 4 additions & 1 deletion Sensus.Android/Probes/Device/AndroidScreenProbe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ public AndroidScreenProbe()
protected override IEnumerable<Datum> Poll()
{
bool screenOn;

#if __ANDROID_20__
if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
screenOn = _powerManager.IsInteractive;
screenOn = _powerManager.IsInteractive; // API level 20
else
#endif
screenOn = _powerManager.IsScreenOn;

return new Datum[] { new ScreenDatum(this, DateTimeOffset.UtcNow, screenOn) };
Expand Down
2 changes: 0 additions & 2 deletions Sensus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitignore = .gitignore
LICENSE.txt = LICENSE.txt
NOTICE.txt = NOTICE.txt
README.md = README.md
RELEASE.txt = RELEASE.txt
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{D0290BCC-1A5C-4258-891F-A1D4E8098EE2}"
Expand Down

0 comments on commit 878af1c

Please sign in to comment.