mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
if Same sorting is enabled, use the directory sorting
This commit is contained in:
parent
5bc11afc69
commit
2ce5c90204
1 changed files with 7 additions and 1 deletions
|
@ -39,10 +39,16 @@ public class Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSorting() {
|
public int getSorting() {
|
||||||
|
if (getIsSameSorting())
|
||||||
|
return getDirectorySorting();
|
||||||
|
|
||||||
return mPrefs.getInt(Constants.SORT_ORDER, Constants.SORT_BY_DATE | Constants.SORT_DESCENDING);
|
return mPrefs.getInt(Constants.SORT_ORDER, Constants.SORT_BY_DATE | Constants.SORT_DESCENDING);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSorting(int order) {
|
public void setSorting(int order) {
|
||||||
|
if (getIsSameSorting())
|
||||||
|
setDirectorySorting(order);
|
||||||
|
else
|
||||||
mPrefs.edit().putInt(Constants.SORT_ORDER, order).apply();
|
mPrefs.edit().putInt(Constants.SORT_ORDER, order).apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue