Skip to content

Commit

Permalink
Remove pointless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep authored and davigonz committed Dec 16, 2019
1 parent acb9d27 commit 74802e0
Showing 1 changed file with 0 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
import android.widget.ListAdapter;
import android.widget.WrapperListAdapter;

import com.owncloud.android.lib.common.utils.Log_OC;

import java.lang.reflect.Field;
import java.util.ArrayList;

Expand All @@ -44,9 +42,6 @@
* See {@link GridViewWithHeaderAndFooter#addFooterView(View, Object, boolean)}
*/
public class GridViewWithHeaderAndFooter extends GridView {

public static boolean DEBUG = false;

/**
* A class that represents a fixed view in a list, for example a header at the top
* or a footer at the bottom.
Expand Down Expand Up @@ -592,9 +587,6 @@ public boolean hasStableIds() {

@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (DEBUG) {
Log_OC.d(String.format("getView: %s, reused: %s", position, convertView == null));
}
// Header (negative positions will throw an ArrayIndexOutOfBoundsException)
int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns;
if (position < numHeadersAndPlaceholders) {
Expand Down Expand Up @@ -695,10 +687,6 @@ public int getItemViewType(int position) {
type = adapterViewTypeStart + mHeaderViewInfos.size() + 1 + (footerPosition / mNumColumns + 1);
}
}
if (DEBUG) {
Log_OC.d(String.format("getItemViewType: pos: %s, result: %s", position, type,
mCachePlaceHoldView, mCacheFirstHeaderView));
}
return type;
}

Expand All @@ -717,9 +705,6 @@ public int getViewTypeCount() {
}
count += offset;
}
if (DEBUG) {
Log_OC.d(String.format("getViewTypeCount: %s", count));
}
return count;
}

Expand Down Expand Up @@ -773,34 +758,6 @@ public void setSelectionFromTop(int position, int y) {
}

setSelection(position);
//setSelectionInt(position);

/*if (!isInTouchMode()) {
position = super.lookForSelectablePosition(position, true);
if (position >= 0) {
setNextSelectedPositionInt(position);
}
} else {
mResurrectToPosition = position;
}*/

/*
if (position >= 0) {
mLayoutMode = LAYOUT_SPECIFIC;
mSpecificTop = mListPadding.top + y;
if (mNeedSync) {
mSyncPosition = position;
mSyncRowId = getAdapter().getItemId(position);
}
if (mPositionScroller != null) {
mPositionScroller.stop();
}
requestLayout();
}
*/
}

}

0 comments on commit 74802e0

Please sign in to comment.