Skip to content
Snippets Groups Projects
Verified Commit 6fe499e9 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fix lint issues

parent be1e0633
No related branches found
No related tags found
No related merge requests found
Pipeline #445 canceled
......@@ -16,6 +16,7 @@
package de.kuschku.ui.internal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
......@@ -133,18 +134,17 @@ public final class CollapsingTextHelper {
public void setCollapsedTextAppearance(int resId) {
Context context = view.getContext();
TypedArray a = context.obtainStyledAttributes(resId, R.styleable.TextAppearance);
ColorStateList textColor = MaterialResources.getColorStateList(context, a, R.styleable.TextAppearance_android_textColor);
TypedArray a = context.obtainStyledAttributes(resId, R.styleable.md_TextAppearance);
ColorStateList textColor = MaterialResources.getColorStateList(context, a, R.styleable.md_TextAppearance_android_textColor);
if (textColor != null) {
collapsedTextColor = textColor;
}
float textSize = a.getDimension(R.styleable.TextAppearance_android_textSize, 0f);
float textSize = a.getDimension(R.styleable.md_TextAppearance_android_textSize, 0f);
if (textSize != 0) {
collapsedTextSize = textSize;
}
a.recycle();
recalculate();
}
......@@ -212,6 +212,7 @@ public final class CollapsingTextHelper {
return colorStateList.getDefaultColor();
}
@SuppressLint("RtlHardcoded")
private void calculateBaseOffsets() {
// We then calculate the collapsed text size, using the same logic
calculateUsingTextSize();
......
......@@ -323,10 +323,12 @@ final class IndicatorViewController {
return errorView;
case CAPTION_STATE_HELPER_TEXT:
return helperTextView;
default: // No caption displayed, fall out and return null.
}
case CAPTION_STATE_NONE:
default:
// No caption displayed, fall out and return null.
return null;
}
}
void adjustIndicatorPadding() {
if (canAdjustIndicatorPadding()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment