Skip to content

Commit bad7973

Browse files
committed
Remove resource constructor
1 parent f2a951a commit bad7973

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

paymentsheet/api/paymentsheet.api

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,8 +2430,6 @@ public final class com/stripe/android/paymentsheet/PaymentSheet$Typography$Font
24302430
public static final field $stable I
24312431
public static final field CREATOR Landroid/os/Parcelable$Creator;
24322432
public fun <init> ()V
2433-
public fun <init> (Landroid/content/Context;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
2434-
public synthetic fun <init> (Landroid/content/Context;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
24352433
public fun <init> (Ljava/lang/Integer;Ljava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;)V
24362434
public synthetic fun <init> (Ljava/lang/Integer;Ljava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
24372435
public final fun component1 ()Ljava/lang/Integer;

paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,32 +1677,7 @@ class PaymentSheet internal constructor(
16771677
* The letter spacing used for the text. This should represent a sp value.
16781678
*/
16791679
val letterSpacingSp: Float? = null,
1680-
) : Parcelable {
1681-
constructor(
1682-
context: Context,
1683-
/**
1684-
* The font used in text. This should be a resource ID value.
1685-
*/
1686-
@FontRes fontFamily: Int?,
1687-
/**
1688-
* The font size resource used for the text. This should represent a sp value.
1689-
*/
1690-
@DimenRes fontSizeRes: Int? = null,
1691-
/**
1692-
* The font weight used for the text.
1693-
*/
1694-
fontWeight: Int? = null,
1695-
/**
1696-
* The letter spacing resource used for the text. This should represent a sp value.
1697-
*/
1698-
@DimenRes letterSpacingRes: Int? = null,
1699-
) : this(
1700-
fontFamily = fontFamily,
1701-
fontSizeSp = fontSizeRes?.let { context.getRawValueFromDimenResource(it) },
1702-
fontWeight = fontWeight,
1703-
letterSpacingSp = letterSpacingRes?.let { context.getRawValueFromDimenResource(it) },
1704-
)
1705-
}
1680+
) : Parcelable
17061681

17071682
companion object {
17081683
val default = Typography(

0 commit comments

Comments
 (0)