Skip to content

Commit

Permalink
chore: Optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGreenEngineer committed Oct 4, 2024
1 parent 8a13f26 commit 6172da2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.appcompat.widget.AppCompatImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.RequestListener
import com.bumptech.glide.request.RequestOptions
import com.bumptech.glide.request.target.Target

Expand All @@ -22,7 +23,7 @@ class AlertImageView @JvmOverloads constructor(
.load(url)
.apply(RequestOptions().centerCrop())
.listener(
object : com.bumptech.glide.request.RequestListener<Drawable> {
object : RequestListener<Drawable> {

override fun onLoadFailed(
exception: GlideException?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_height="44dp"
android:layout_marginEnd="6dp"
android:layout_height="@dimen/button_height"
android:layout_marginEnd="@dimen/margin_small"
android:layout_weight="1"
app:cardCornerRadius="8dp">
app:cardCornerRadius="@dimen/small_corner_radius">

<com.personalization.inAppNotification.view.component.button.AlertButton
android:id="@+id/buttonDecline"
Expand All @@ -26,10 +26,10 @@

<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_height="44dp"
android:layout_marginStart="6dp"
android:layout_height="@dimen/button_height"
android:layout_marginStart="@dimen/margin_small"
android:layout_weight="1"
app:cardCornerRadius="8dp">
app:cardCornerRadius="@dimen/small_corner_radius">

<com.personalization.inAppNotification.view.component.button.AlertButton
android:id="@+id/buttonAccept"
Expand Down
3 changes: 3 additions & 0 deletions personalization-sdk/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<dimen name="default_margin">5dp</dimen>
<dimen name="medium_margin">10dp</dimen>
<dimen name="large_margin">20dp</dimen>
<dimen name="button_height">44dp</dimen>
<dimen name="small_corner_radius">8dp</dimen>
<dimen name="margin_small">6dp</dimen>

<dimen name="product_image_size">150dp</dimen>
<dimen name="product_margin">8dp</dimen>
Expand Down

0 comments on commit 6172da2

Please sign in to comment.