ModdingFox / OpenFuraffinityClient

A toy project of mine to build an unofficial furaffinity client for android
11 stars 1 forks source link

commentListAdapter padding bug #40

Closed ModdingFox closed 3 years ago

ModdingFox commented 3 years ago

Something is up with the below. Gotta look into it at some point here.

    if (mDataSet.get(position).containsKey("parentCommentId")) {
        for (int i = 0; i < position; i++) {
            if (mDataSet.get(i).get("commentId").equals(mDataSet.get(position).get("parentCommentId"))) {
                int paddingToApply = Integer.parseInt(mDataSet.get(i).get("padding"));
                paddingToApply += 25;
                mDataSet.get(position).put("padding", Integer.toString(paddingToApply));

                holder.commentItemLinearLayout.setPadding(paddingToApply, 0, 0, 0);
            }
        }
    } else {
        mDataSet.get(position).put("padding", "0");
    }
ModdingFox commented 3 years ago

Have not seen this crash in some time. Will leave this active until 2021-01-01 unless this is seen again.

ModdingFox commented 3 years ago

Have not seen this in sometime