/** {@inheritDoc} */ @Override public void deleteUserDisposition(int position) { List<List<Disposition>> dispositions = PreferencesProvider.Preferences.Layout.getLandscapeUserDispositions(getActivity()); dispositions.remove(position); PreferencesProvider.Preferences.Layout.setLandscapeUserDispositions( getActivity(), dispositions); }
/** {@inheritDoc} */ @Override public void saveUserDisposition(List<Disposition> disposition) { List<List<Disposition>> dispositions = PreferencesProvider.Preferences.Layout.getLandscapeUserDispositions(getActivity()); dispositions.add(disposition); PreferencesProvider.Preferences.Layout.setLandscapeUserDispositions( getActivity(), dispositions); }