From f273fe03fafe38c9d275d091138255dabc7aa45c Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 19 Nov 2014 09:19:04 +0100 Subject: [PATCH] linewrap --- src/com/owncloud/android/ui/adapter/FileListListAdapter.java | 3 ++- src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java | 3 ++- src/com/owncloud/android/ui/fragment/ExtendedListFragment.java | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index c2f70e8d..9d054bc7 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -527,7 +527,8 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { public int compare(OCFile o1, OCFile o2) { if (o1.isFolder() && o2.isFolder()) { Long obj1 = getFolderSize(new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o1))); - return val * obj1.compareTo(getFolderSize(new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o2)))); + return val * obj1.compareTo(getFolderSize( + new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o2)))); } else if (o1.isFolder()) { return -1; diff --git a/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java b/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java index 8fcec5c3..7f4d7d53 100644 --- a/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java @@ -133,7 +133,8 @@ public class LocalFileListAdapter extends BaseAdapter implements ListAdapter { fileSizeV.setVisibility(View.VISIBLE); fileSizeV.setText(DisplayUtils.bytesToHumanReadable(file.length())); - view.findViewById(R.id.localFileIndicator).setVisibility(View.INVISIBLE); // not GONE; the alignment changes; ugly way to keep it + // not GONE; the alignment changes; ugly way to keep it + view.findViewById(R.id.localFileIndicator).setVisibility(View.INVISIBLE); view.findViewById(R.id.favoriteIcon).setVisibility(View.GONE); view.findViewById(R.id.sharedIcon).setVisibility(View.GONE); diff --git a/src/com/owncloud/android/ui/fragment/ExtendedListFragment.java b/src/com/owncloud/android/ui/fragment/ExtendedListFragment.java index 99d90c31..b48456f0 100644 --- a/src/com/owncloud/android/ui/fragment/ExtendedListFragment.java +++ b/src/com/owncloud/android/ui/fragment/ExtendedListFragment.java @@ -151,8 +151,8 @@ implements OnItemClickListener, OnEnforceableRefreshListener { /** - * Calculates the position of the item that will be used as a reference to reposition the visible items in the list when - * the device is turned to other position. + * Calculates the position of the item that will be used as a reference to reposition the visible items + * in the list when the device is turned to other position. * * THe current policy is take as a reference the visible item in the center of the screen. * @@ -170,7 +170,8 @@ implements OnItemClickListener, OnEnforceableRefreshListener { /** * Sets the visible part of the list from the reference position. * - * @param position Reference position previously returned by {@link LocalFileListFragment#getReferencePosition()} + * @param position Reference position previously + * returned by {@link LocalFileListFragment#getReferencePosition()} */ protected void setReferencePosition(int position) { if (imageView != null) { -- 2.11.0