Browse Source

formatting

tobiasKaminsky 8 years ago
parent
commit
32a5c7d81a

+ 6 - 6
src/main/java/com/owncloud/android/ui/fragment/contactsbackup/ContactListFragment.java

@@ -155,12 +155,12 @@ public class ContactListFragment extends FileFragment {
                 Collections.sort(vCards, new Comparator<VCard>() {
                     @Override
                     public int compare(VCard o1, VCard o2) {
-                        if(o1.getFormattedName()!=null && o2.getFormattedName()!=null) {
+                        if (o1.getFormattedName() != null && o2.getFormattedName() != null) {
                             return o1.getFormattedName().getValue().compareTo(o2.getFormattedName().getValue());
-                        }else{
-                            if(o1.getFormattedName()==null){
+                        } else {
+                            if (o1.getFormattedName() == null) {
                                 return 1; // Send the contact to the end of the list
-                            }else{
+                            } else {
                                 return -1;
                             }
 
@@ -268,7 +268,7 @@ public class ContactListFragment extends FileFragment {
 
     private void setSelectAllMenuItem(MenuItem selectAll, boolean checked) {
         selectAll.setChecked(checked);
-        if(checked) {
+        if (checked) {
             selectAll.setIcon(R.drawable.ic_select_none);
         } else {
             selectAll.setIcon(R.drawable.ic_select_all);
@@ -480,7 +480,7 @@ class ContactListAdapter extends RecyclerView.Adapter<ContactListFragment.Contac
         if (checkedVCards != null && checkedVCards.size() > 0) {
             intArray = new int[checkedVCards.size()];
             int i = 0;
-            for (int position: checkedVCards) {
+            for (int position : checkedVCards) {
                 intArray[i] = position;
                 i++;
             }