blob: 72058cd086bbbbeaac2ec23b5d560779c01e83a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package cgeo.geocaching.compatibility;
import cgeo.geocaching.Settings;
import cgeo.geocaching.utils.Log;
import android.app.Activity;
import android.app.backup.BackupManager;
import android.view.Display;
public class AndroidLevel8 implements AndroidLevel8Interface {
public int getRotation(final Activity activity) {
Display display = activity.getWindowManager().getDefaultDisplay();
return display.getRotation();
}
public void dataChanged(final String name) {
Log.i(Settings.tag, "Requesting settings backup with settings manager");
BackupManager.dataChanged(name);
}
}
|