mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-18 15:07:30 +01:00
Improve reader options menu. Allow to select default viewer per manga. Allow to lock screen rotation. Working on more options.
This commit is contained in:
@@ -40,6 +40,19 @@ public class PreferencesHelper {
|
||||
return prefs.getBoolean(getKey(R.string.pref_hide_status_bar_key), true);
|
||||
}
|
||||
|
||||
public boolean isOrientationLocked() {
|
||||
return prefs.getBoolean(getKey(R.string.pref_lock_orientation_key), true);
|
||||
}
|
||||
|
||||
public void setOrientationLocked(boolean lock) {
|
||||
prefs.edit().putBoolean(getKey(R.string.pref_lock_orientation_key), lock).apply();
|
||||
}
|
||||
|
||||
public Observable<Boolean> isOrientationLockedObservable() {
|
||||
return rxPrefs.getBoolean(getKey(R.string.pref_lock_orientation_key), true)
|
||||
.asObservable();
|
||||
}
|
||||
|
||||
public int getDefaultViewer() {
|
||||
return Integer.parseInt(prefs.getString(getKey(R.string.pref_default_viewer_key), "1"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user