diff options
Diffstat (limited to 'main/src/cgeo/geocaching/compatibility')
4 files changed, 6 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/compatibility/AndroidLevel11.java b/main/src/cgeo/geocaching/compatibility/AndroidLevel11.java index acb9dca..8bc5156 100644 --- a/main/src/cgeo/geocaching/compatibility/AndroidLevel11.java +++ b/main/src/cgeo/geocaching/compatibility/AndroidLevel11.java @@ -10,6 +10,7 @@ import android.app.Activity; */ public class AndroidLevel11 implements AndroidLevel11Interface { + @Override public void invalidateOptionsMenu(final Activity activity) { activity.invalidateOptionsMenu(); } diff --git a/main/src/cgeo/geocaching/compatibility/AndroidLevel11Dummy.java b/main/src/cgeo/geocaching/compatibility/AndroidLevel11Dummy.java index cd18f67..9dd9223 100644 --- a/main/src/cgeo/geocaching/compatibility/AndroidLevel11Dummy.java +++ b/main/src/cgeo/geocaching/compatibility/AndroidLevel11Dummy.java @@ -10,6 +10,7 @@ import android.app.Activity; */ public class AndroidLevel11Dummy implements AndroidLevel11Interface { + @Override public void invalidateOptionsMenu(final Activity activity) { // do nothing } diff --git a/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java b/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java index 0fc9624..859fdf1 100644 --- a/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java +++ b/main/src/cgeo/geocaching/compatibility/AndroidLevel8.java @@ -8,11 +8,13 @@ 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); diff --git a/main/src/cgeo/geocaching/compatibility/AndroidLevel8Dummy.java b/main/src/cgeo/geocaching/compatibility/AndroidLevel8Dummy.java index 664b55b..d0ab911 100644 --- a/main/src/cgeo/geocaching/compatibility/AndroidLevel8Dummy.java +++ b/main/src/cgeo/geocaching/compatibility/AndroidLevel8Dummy.java @@ -4,10 +4,12 @@ import android.app.Activity; public class AndroidLevel8Dummy implements AndroidLevel8Interface { + @Override public int getRotation(final Activity activity) { return 0; } + @Override public void dataChanged(final String name) { // do nothing } |