Fix code style

This commit is contained in:
CappielloAntonio 2021-04-19 15:24:42 +02:00
parent ff1f4ef106
commit 99135a0e0d
7 changed files with 28 additions and 12 deletions

View file

@ -111,6 +111,26 @@ public class PreferenceUtil {
editor.apply();
}
public int getPosition() {
return mPreferences.getInt(POSITION, -1);
}
public void setPosition(int position) {
final SharedPreferences.Editor editor = mPreferences.edit();
editor.putInt(POSITION, position);
editor.apply();
}
public int getProgress() {
return mPreferences.getInt(PROGRESS, -1);
}
public void setProgress(int progress) {
final SharedPreferences.Editor editor = mPreferences.edit();
editor.putInt(PROGRESS, progress);
editor.apply();
}
public final int getImageCacheSize() {
return Integer.parseInt(mPreferences.getString(IMAGE_CACHE_SIZE, "400000000"));
}