mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Reformat some lines
This commit is contained in:
parent
8fa5936eb0
commit
5c54df6af0
1 changed files with 20 additions and 11 deletions
|
@ -38,7 +38,6 @@ import android.view.View;
|
|||
import android.view.ViewGroup;
|
||||
import android.widget.AbsListView;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.GridView;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ListAdapter;
|
||||
import android.widget.TextView;
|
||||
|
@ -202,9 +201,11 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
checkBoxV.setVisibility(View.GONE);
|
||||
} else {
|
||||
if (parentList.isItemChecked(position)) {
|
||||
checkBoxV.setImageResource(android.R.drawable.checkbox_on_background);
|
||||
checkBoxV.setImageResource(
|
||||
android.R.drawable.checkbox_on_background);
|
||||
} else {
|
||||
checkBoxV.setImageResource(android.R.drawable.checkbox_off_background);
|
||||
checkBoxV.setImageResource(
|
||||
android.R.drawable.checkbox_off_background);
|
||||
}
|
||||
checkBoxV.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
@ -233,15 +234,21 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
// local state
|
||||
ImageView localStateView = (ImageView) view.findViewById(R.id.localFileIndicator);
|
||||
localStateView.bringToFront();
|
||||
FileDownloaderBinder downloaderBinder = mTransferServiceGetter.getFileDownloaderBinder();
|
||||
FileUploaderBinder uploaderBinder = mTransferServiceGetter.getFileUploaderBinder();
|
||||
boolean downloading = (downloaderBinder != null && downloaderBinder.isDownloading(mAccount, file));
|
||||
OperationsServiceBinder opsBinder = mTransferServiceGetter.getOperationsServiceBinder();
|
||||
downloading |= (opsBinder != null && opsBinder.isSynchronizing(mAccount, file.getRemotePath()));
|
||||
FileDownloaderBinder downloaderBinder =
|
||||
mTransferServiceGetter.getFileDownloaderBinder();
|
||||
FileUploaderBinder uploaderBinder =
|
||||
mTransferServiceGetter.getFileUploaderBinder();
|
||||
boolean downloading = (downloaderBinder != null &&
|
||||
downloaderBinder.isDownloading(mAccount, file));
|
||||
OperationsServiceBinder opsBinder =
|
||||
mTransferServiceGetter.getOperationsServiceBinder();
|
||||
downloading |= (opsBinder != null &&
|
||||
opsBinder.isSynchronizing(mAccount, file.getRemotePath()));
|
||||
if (downloading) {
|
||||
localStateView.setImageResource(R.drawable.downloading_file_indicator);
|
||||
localStateView.setVisibility(View.VISIBLE);
|
||||
} else if (uploaderBinder != null && uploaderBinder.isUploading(mAccount, file)) {
|
||||
} else if (uploaderBinder != null &&
|
||||
uploaderBinder.isUploading(mAccount, file)) {
|
||||
localStateView.setImageResource(R.drawable.uploading_file_indicator);
|
||||
localStateView.setVisibility(View.VISIBLE);
|
||||
} else if (file.isDown()) {
|
||||
|
@ -253,7 +260,8 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
|
||||
// share with me icon
|
||||
if (!file.isFolder()) {
|
||||
ImageView sharedWithMeIconV = (ImageView) view.findViewById(R.id.sharedWithMeIcon);
|
||||
ImageView sharedWithMeIconV = (ImageView)
|
||||
view.findViewById(R.id.sharedWithMeIcon);
|
||||
sharedWithMeIconV.bringToFront();
|
||||
if (checkIfFileIsSharedWithMe(file)) {
|
||||
sharedWithMeIconV.setVisibility(View.VISIBLE);
|
||||
|
@ -305,7 +313,8 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
fileIcon.setImageResource(DisplayUtils.getFileTypeIconId(file.getMimetype(), file.getFileName()));
|
||||
fileIcon.setImageResource(DisplayUtils.getFileTypeIconId(file.getMimetype(),
|
||||
file.getFileName()));
|
||||
}
|
||||
} else {
|
||||
// Folder
|
||||
|
|
Loading…
Reference in a new issue