- 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
43 lines
1.6 KiB
Java
43 lines
1.6 KiB
Java
package com.google.android.exoplayer2.ui;
|
|
|
|
import android.R;
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.graphics.Paint;
|
|
import android.text.TextPaint;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class SubtitlePainter {
|
|
public final Paint bitmapPaint;
|
|
public final float outlineWidth;
|
|
public final float shadowOffset;
|
|
public final float shadowRadius;
|
|
public final float spacingAdd;
|
|
public final float spacingMult;
|
|
public final TextPaint textPaint;
|
|
public final Paint windowPaint;
|
|
|
|
public SubtitlePainter(Context context) {
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(null, new int[]{R.attr.lineSpacingExtra, R.attr.lineSpacingMultiplier}, 0, 0);
|
|
this.spacingAdd = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
|
this.spacingMult = obtainStyledAttributes.getFloat(1, 1.0f);
|
|
obtainStyledAttributes.recycle();
|
|
float round = Math.round((context.getResources().getDisplayMetrics().densityDpi * 2.0f) / 160.0f);
|
|
this.outlineWidth = round;
|
|
this.shadowRadius = round;
|
|
this.shadowOffset = round;
|
|
TextPaint textPaint = new TextPaint();
|
|
this.textPaint = textPaint;
|
|
textPaint.setAntiAlias(true);
|
|
textPaint.setSubpixelText(true);
|
|
Paint paint = new Paint();
|
|
this.windowPaint = paint;
|
|
paint.setAntiAlias(true);
|
|
paint.setStyle(Paint.Style.FILL);
|
|
Paint paint2 = new Paint();
|
|
this.bitmapPaint = paint2;
|
|
paint2.setAntiAlias(true);
|
|
paint2.setFilterBitmap(true);
|
|
}
|
|
}
|