Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Use fallback for version number for the menu button detection. #22
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Mar 28, 2013
1 parent c59b5a2 commit c0cda1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LegacyBar.Library/Bar/LegacyBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Android.Content;
using Android.Graphics;
using Android.Graphics.Drawables;
using Android.OS;
using Android.Views;
using Android.Widget;
using Android.Util;
Expand Down Expand Up @@ -67,7 +68,8 @@ public bool HasMenuButton
#elif __ANDROID_11__
return false;
#else
return true;
//fallback
return ((int)Build.VERSION.SdkInt) < 11;
#endif
}
}
Expand Down

0 comments on commit c0cda1d

Please sign in to comment.