- * Due to changes in API level 8. - * - * @param context the context - */ - public PeriodicTask getAnnouncementPeriodicTask(Context context); - - /** - * Gets a {@link BackupPreferencesListener}. - *
- * Due to changes in API level 8. - * - * @param context the context - */ - public BackupPreferencesListener getBackupPreferencesListener(Context context); - /** * Applies all the changes done to a given preferences editor. Changes may or * may not be applied immediately. @@ -184,15 +162,6 @@ public interface ApiAdapter { */ public void invalidMenu(Activity activity); - /** - * Diables hardware-accelerated rendering for a view. - *
- * Due to chagnes in API level 11. - * - * @param view the view - */ - public void disableHardwareAccelerated(View view); - /** * Handles the search key press. Returns true if handled. *
diff --git a/MyTracks/src/com/google/android/apps/mytracks/util/ApiAdapterFactory.java b/MyTracks/src/com/google/android/apps/mytracks/util/ApiAdapterFactory.java index 589aa7926..d1ebdffe8 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/util/ApiAdapterFactory.java +++ b/MyTracks/src/com/google/android/apps/mytracks/util/ApiAdapterFactory.java @@ -43,11 +43,8 @@ public class ApiAdapterFactory { } else if (Build.VERSION.SDK_INT >= 9) { apiAdapter = new Api9Adapter(); return apiAdapter; - } else if (Build.VERSION.SDK_INT >= 8) { - apiAdapter = new Api8Adapter(); - return apiAdapter; } else { - apiAdapter = new Api7Adapter(); + apiAdapter = new Api8Adapter(); return apiAdapter; } }