Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Mayer <[email protected]>
  • Loading branch information
JonasMayerDev committed Jan 25, 2024
1 parent faef0ef commit 7d64a30
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1589,24 +1589,12 @@ protected ServiceConnection newTransferenceServiceConnection() {

/**
* Defines callbacks for service binding, passed to bindService()
* TODO: Check if this can be removed since download and uploads uses work manager now.
*/
private class ListServiceConnection implements ServiceConnection {

@Override
public void onServiceConnected(ComponentName component, IBinder service) {
// a new chance to get the mDownloadBinder through
// getFileDownloadBinder() - THIS IS A MESS
OCFileListFragment listOfFiles = getListOfFilesFragment();
if (listOfFiles != null && (getIntent() == null || (getIntent() != null &&
IntentExtensionsKt.getParcelableArgument(getIntent(), EXTRA_FILE, OCFile.class) == null))) {
listOfFiles.listDirectory(MainApp.isOnlyOnDevice(), false);
}

Fragment leftFragment = getLeftFragment();
if (leftFragment instanceof FileDetailFragment detailFragment) {
detailFragment.listenForTransferProgress();
detailFragment.updateFileDetails(false, false);
}
public void onServiceConnected(ComponentName name, IBinder service) {
}

@Override
Expand Down

0 comments on commit 7d64a30

Please sign in to comment.