Skip to content

Commit

Permalink
Show sort list group for file list
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Feb 13, 2024
1 parent 9151e32 commit 0bbff3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,7 @@ private void setSortListGroup(boolean currentListGroupVisibility, boolean show)
*/
private void popSortListGroupVisibility() {
if (previousSortGroupState.isEmpty()) {
showSortListGroup(false);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import com.owncloud.android.operations.RefreshFolderOperation;
import com.owncloud.android.operations.RemoteOperationFailedException;
import com.owncloud.android.ui.activity.ComponentsGetter;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.fragment.SearchType;
import com.owncloud.android.ui.interfaces.OCFileListFragmentInterface;
import com.owncloud.android.ui.preview.PreviewTextFragment;
Expand Down Expand Up @@ -160,6 +161,10 @@ public OCFileListAdapter(
this.gridView = gridView;
mStorageManager = transferServiceGetter.getStorageManager();

if (activity instanceof FileDisplayActivity) {
((FileDisplayActivity) activity).showSortListGroup(true);
}

if (mStorageManager == null) {
mStorageManager = new FileDataStorageManager(user, activity.getContentResolver());
}
Expand Down

0 comments on commit 0bbff3b

Please sign in to comment.