obey lint

apply() saves in background which is good enough for us
This commit is contained in:
Adrian Ulrich 2016-03-31 20:28:34 +02:00
parent 29ccd7dc5c
commit a3439c0dbf
5 changed files with 5 additions and 5 deletions

View File

@ -660,7 +660,7 @@ public class FullPlaybackActivity extends PlaybackActivity
SharedPreferences.Editor editor = PlaybackService.getSettings(this).edit();
editor.putBoolean(PrefKeys.VISIBLE_CONTROLS, mControlsVisible);
editor.putBoolean(PrefKeys.VISIBLE_EXTRA_INFO, mExtraInfoVisible);
editor.commit();
editor.apply();
break;
}
case MSG_UPDATE_PROGRESS:

View File

@ -896,7 +896,7 @@ public class LibraryActivity
case MSG_SAVE_PAGE: {
SharedPreferences.Editor editor = PlaybackService.getSettings(this).edit();
editor.putInt("library_page", message.arg1);
editor.commit();
editor.apply();
break;
}
case MSG_UPDATE_COVER: {

View File

@ -661,7 +661,7 @@ public class LibraryPagerAdapter
MediaAdapter adapter = (MediaAdapter)message.obj;
SharedPreferences.Editor editor = PlaybackService.getSettings(mActivity).edit();
editor.putInt(String.format("sort_%d_%d", adapter.getMediaType(), adapter.getLimiterType()), adapter.getSortMode());
editor.commit();
editor.apply();
break;
}
case MSG_REQUEST_REQUERY:

View File

@ -231,7 +231,7 @@ public class SeekBarPreference extends DialogPreference implements SeekBar.OnSee
private void saveCheckBoxPreference(boolean enabled) {
SharedPreferences.Editor editor = PlaybackService.getSettings(mContext).edit();
editor.putBoolean(mCheckBoxKey, enabled);
editor.commit();
editor.apply();
}
private boolean getCheckBoxPreference() {

View File

@ -117,7 +117,7 @@ public class TabOrderActivity extends Activity
SharedPreferences.Editor editor = PlaybackService.getSettings(this).edit();
editor.putString(PrefKeys.TAB_ORDER, new String(out));
editor.commit();
editor.apply();
}
/**