- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
46 lines
1.7 KiB
Java
46 lines
1.7 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.text.Layout;
|
|
import android.util.AttributeSet;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.appcompat.R;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
/* loaded from: classes.dex */
|
|
public class DialogTitle extends AppCompatTextView {
|
|
public DialogTitle(@NonNull Context context, @Nullable AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
}
|
|
|
|
public DialogTitle(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public DialogTitle(@NonNull Context context) {
|
|
super(context);
|
|
}
|
|
|
|
@Override // androidx.appcompat.widget.AppCompatTextView, android.widget.TextView, android.view.View
|
|
public void onMeasure(int i, int i2) {
|
|
int lineCount;
|
|
super.onMeasure(i, i2);
|
|
Layout layout = getLayout();
|
|
if (layout == null || (lineCount = layout.getLineCount()) <= 0 || layout.getEllipsisCount(lineCount - 1) <= 0) {
|
|
return;
|
|
}
|
|
setSingleLine(false);
|
|
setMaxLines(2);
|
|
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(null, R.styleable.TextAppearance, android.R.attr.textAppearanceMedium, android.R.style.TextAppearance.Medium);
|
|
int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(R.styleable.TextAppearance_android_textSize, 0);
|
|
if (dimensionPixelSize != 0) {
|
|
setTextSize(0, dimensionPixelSize);
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
super.onMeasure(i, i2);
|
|
}
|
|
}
|