aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java
blob: 9c5148a2be1722eadd7383d9f17318031860708c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
    }
}