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 12, 2024
1 parent 37bbc71 commit ffd1c37
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 @@ -2486,6 +2486,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 ffd1c37

Please sign in to comment.