diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
| commit | 579ef7a535489d4aa632db11667a3b01deb6cafd (patch) | |
| tree | 55810021c02ac7d80d3a9702ef0b59e4af154b9c /main/src/cgeo/geocaching/compatibility/AndroidLevel8.java | |
| parent | 96ea21fd50334479c262da692038965d0e4d596a (diff) | |
| download | cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.zip cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.gz cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.bz2 | |
Move sources into the main directory
This prepares the inclusion of tests into the same repository.
Diffstat (limited to 'main/src/cgeo/geocaching/compatibility/AndroidLevel8.java')
| -rw-r--r-- | main/src/cgeo/geocaching/compatibility/AndroidLevel8.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java b/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java new file mode 100644 index 0000000..9c5148a --- /dev/null +++ b/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java @@ -0,0 +1,27 @@ +package cgeo.geocaching.compatibility; + +import android.app.Activity; + +public class AndroidLevel8 { + static { + try { + Class.forName("cgeo.geocaching.compatibility.AndroidLevel8Internal"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + private AndroidLevel8Internal internal; + + public static void check() { + // nothing + } + + public AndroidLevel8() { + internal = new AndroidLevel8Internal(); + } + + public int getRotation(Activity activity) { + return internal.getRotation(activity); + } +} |
