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
No related tags found
No related merge requests found
......@@ -220,8 +220,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
return inflatedView;
}
OnDragListener dragListener = new OnDragListener() {
@Override
......@@ -248,7 +246,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
};
@Override
public boolean onQueryTextChange(String newText) {
......@@ -327,7 +324,8 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
int searchBarId = search.getContext().getResources().getIdentifier("android:id/search_bar", null, null);
// Get the search bar Linearlayout
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.
searchBar.setLayoutTransition(new LayoutTransition());
search.setOnQueryTextListener(ContactListFragment.this);
......@@ -339,8 +337,6 @@ public class ContactListFragment extends Fragment implements OnQueryTextListener
}
});
}
}
......@@ -174,7 +174,6 @@ public class HomeFragment extends Fragment {
nb_calls.setText("" + calls.size());
ArrayList<Conference> conferences = new ArrayList<Conference>();
for (SipCall call : calls.values()) {
Log.w(TAG, "SimpleCall:" + call.getCallId());
Conference confOne = new Conference("-1");
confOne.getParticipants().add(call);
conferences.add(confOne);
......@@ -358,18 +357,18 @@ public class HomeFragment extends Fragment {
switch (event.getAction()) {
case DragEvent.ACTION_DRAG_STARTED:
// Do nothing
Log.w(TAG, "ACTION_DRAG_STARTED");
// Log.w(TAG, "ACTION_DRAG_STARTED");
break;
case DragEvent.ACTION_DRAG_ENTERED:
Log.w(TAG, "ACTION_DRAG_ENTERED");
// Log.w(TAG, "ACTION_DRAG_ENTERED");
v.setBackgroundColor(Color.GREEN);
break;
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));
break;
case DragEvent.ACTION_DROP:
Log.w(TAG, "ACTION_DROP");
// Log.w(TAG, "ACTION_DROP");
View view = (View) event.getLocalState();
Item i = event.getClipData().getItemAt(0);
......@@ -395,7 +394,7 @@ public class HomeFragment extends Fragment {
// v.setBackgroundColor(Color.BLACK);
break;
case DragEvent.ACTION_DRAG_ENDED:
Log.w(TAG, "ACTION_DRAG_ENDED");
// Log.w(TAG, "ACTION_DRAG_ENDED");
View view1 = (View) event.getLocalState();
view1.setVisibility(View.VISIBLE);
v.setBackgroundDrawable(getResources().getDrawable(R.drawable.item_call_selector));
......
......@@ -4,6 +4,8 @@ import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.util.Log;
import android.view.DragEvent;
import android.view.LayoutInflater;
import android.view.View;
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