Skip to content
Snippets Groups Projects
Commit e2839d5d authored by Alexandre Lision's avatar Alexandre Lision
Browse files

log: removed log, fixed indentation

parent 64d63234
Branches
Tags
No related merge requests found
...@@ -220,8 +220,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener ...@@ -220,8 +220,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
return inflatedView; return inflatedView;
} }
OnDragListener dragListener = new OnDragListener() { OnDragListener dragListener = new OnDragListener() {
@Override @Override
...@@ -248,7 +246,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener ...@@ -248,7 +246,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
}; };
@Override @Override
public boolean onQueryTextChange(String newText) { public boolean onQueryTextChange(String newText) {
...@@ -327,7 +324,8 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener ...@@ -327,7 +324,8 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
int searchBarId = search.getContext().getResources().getIdentifier("android:id/search_bar", null, null); int searchBarId = search.getContext().getResources().getIdentifier("android:id/search_bar", null, null);
// Get the search bar Linearlayout // Get the search bar Linearlayout
LinearLayout searchBar = (LinearLayout) search.findViewById(searchBarId); LinearLayout searchBar = (LinearLayout) search.findViewById(searchBarId);
searchBar.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)); searchBar.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT));
// Give the Linearlayout a transition animation. // Give the Linearlayout a transition animation.
searchBar.setLayoutTransition(new LayoutTransition()); searchBar.setLayoutTransition(new LayoutTransition());
search.setOnQueryTextListener(ContactListFragment.this); search.setOnQueryTextListener(ContactListFragment.this);
...@@ -339,8 +337,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener ...@@ -339,8 +337,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
} }
}); });
} }
} }
...@@ -174,7 +174,6 @@ public class HomeFragment extends Fragment { ...@@ -174,7 +174,6 @@ public class HomeFragment extends Fragment {
nb_calls.setText("" + calls.size()); nb_calls.setText("" + calls.size());
ArrayList<Conference> conferences = new ArrayList<Conference>(); ArrayList<Conference> conferences = new ArrayList<Conference>();
for (SipCall call : calls.values()) { for (SipCall call : calls.values()) {
Log.w(TAG, "SimpleCall:" + call.getCallId());
Conference confOne = new Conference("-1"); Conference confOne = new Conference("-1");
confOne.getParticipants().add(call); confOne.getParticipants().add(call);
conferences.add(confOne); conferences.add(confOne);
...@@ -358,18 +357,18 @@ public class HomeFragment extends Fragment { ...@@ -358,18 +357,18 @@ public class HomeFragment extends Fragment {
switch (event.getAction()) { switch (event.getAction()) {
case DragEvent.ACTION_DRAG_STARTED: case DragEvent.ACTION_DRAG_STARTED:
// Do nothing // Do nothing
Log.w(TAG, "ACTION_DRAG_STARTED"); // Log.w(TAG, "ACTION_DRAG_STARTED");
break; break;
case DragEvent.ACTION_DRAG_ENTERED: case DragEvent.ACTION_DRAG_ENTERED:
Log.w(TAG, "ACTION_DRAG_ENTERED"); // Log.w(TAG, "ACTION_DRAG_ENTERED");
v.setBackgroundColor(Color.GREEN); v.setBackgroundColor(Color.GREEN);
break; break;
case DragEvent.ACTION_DRAG_EXITED: case DragEvent.ACTION_DRAG_EXITED:
Log.w(TAG, "ACTION_DRAG_EXITED"); // Log.w(TAG, "ACTION_DRAG_EXITED");
v.setBackgroundDrawable(getResources().getDrawable(R.drawable.item_call_selector)); v.setBackgroundDrawable(getResources().getDrawable(R.drawable.item_call_selector));
break; break;
case DragEvent.ACTION_DROP: case DragEvent.ACTION_DROP:
Log.w(TAG, "ACTION_DROP"); // Log.w(TAG, "ACTION_DROP");
View view = (View) event.getLocalState(); View view = (View) event.getLocalState();
Item i = event.getClipData().getItemAt(0); Item i = event.getClipData().getItemAt(0);
...@@ -395,7 +394,7 @@ public class HomeFragment extends Fragment { ...@@ -395,7 +394,7 @@ public class HomeFragment extends Fragment {
// v.setBackgroundColor(Color.BLACK); // v.setBackgroundColor(Color.BLACK);
break; break;
case DragEvent.ACTION_DRAG_ENDED: case DragEvent.ACTION_DRAG_ENDED:
Log.w(TAG, "ACTION_DRAG_ENDED"); // Log.w(TAG, "ACTION_DRAG_ENDED");
View view1 = (View) event.getLocalState(); View view1 = (View) event.getLocalState();
view1.setVisibility(View.VISIBLE); view1.setVisibility(View.VISIBLE);
v.setBackgroundDrawable(getResources().getDrawable(R.drawable.item_call_selector)); v.setBackgroundDrawable(getResources().getDrawable(R.drawable.item_call_selector));
......
...@@ -4,6 +4,8 @@ import android.content.Context; ...@@ -4,6 +4,8 @@ import android.content.Context;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.Log;
import android.view.DragEvent;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment