aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java
blob: 859fdf17c2f70283f1663da1ecc8f88380647e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package cgeo.geocaching.compatibility;

import cgeo.geocaching.utils.Log;

import android.app.Activity;
import android.app.backup.BackupManager;
import android.view.Display;

public class AndroidLevel8 implements AndroidLevel8Interface {

    @Override
    public int getRotation(final Activity activity) {
        Display display = activity.getWindowManager().getDefaultDisplay();
        return display.getRotation();
    }

    @Override
    public void dataChanged(final String name) {
        Log.i("Requesting settings backup with settings manager");
        BackupManager.dataChanged(name);
    }
}