mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
if Same sorting is enabled, use the directory sorting
This commit is contained in:
@ -39,11 +39,17 @@ public class Config {
|
||||
}
|
||||
|
||||
public int getSorting() {
|
||||
if (getIsSameSorting())
|
||||
return getDirectorySorting();
|
||||
|
||||
return mPrefs.getInt(Constants.SORT_ORDER, Constants.SORT_BY_DATE | Constants.SORT_DESCENDING);
|
||||
}
|
||||
|
||||
public void setSorting(int order) {
|
||||
mPrefs.edit().putInt(Constants.SORT_ORDER, order).apply();
|
||||
if (getIsSameSorting())
|
||||
setDirectorySorting(order);
|
||||
else
|
||||
mPrefs.edit().putInt(Constants.SORT_ORDER, order).apply();
|
||||
}
|
||||
|
||||
public int getDirectorySorting() {
|
||||
|
Reference in New Issue
Block a user