mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-13 10:42:21 +00:00
@ -8,6 +8,7 @@ import android.widget.Toast
|
|||||||
import androidx.activity.enableEdgeToEdge
|
import androidx.activity.enableEdgeToEdge
|
||||||
import androidx.activity.viewModels
|
import androidx.activity.viewModels
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
import com.alya.ecommerce_serang.BuildConfig.BASE_URL
|
||||||
import com.alya.ecommerce_serang.R
|
import com.alya.ecommerce_serang.R
|
||||||
import com.alya.ecommerce_serang.data.api.dto.Store
|
import com.alya.ecommerce_serang.data.api.dto.Store
|
||||||
import com.alya.ecommerce_serang.data.api.retrofit.ApiConfig
|
import com.alya.ecommerce_serang.data.api.retrofit.ApiConfig
|
||||||
@ -135,7 +136,7 @@ class DetailStoreProfileActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
// Update store image if available
|
// Update store image if available
|
||||||
if (store.storeImage != null && store.storeImage.toString().isNotEmpty() && store.storeImage.toString() != "null") {
|
if (store.storeImage != null && store.storeImage.toString().isNotEmpty() && store.storeImage.toString() != "null") {
|
||||||
val imageUrl = "http://192.168.100.156:3000${store.storeImage}"
|
val imageUrl = "$BASE_URL${store.storeImage}"
|
||||||
Log.d("DetailStoreProfile", "Loading image from: $imageUrl")
|
Log.d("DetailStoreProfile", "Loading image from: $imageUrl")
|
||||||
|
|
||||||
Glide.with(this)
|
Glide.with(this)
|
||||||
|
@ -10,9 +10,11 @@ import android.widget.TextView
|
|||||||
import androidx.recyclerview.widget.DiffUtil
|
import androidx.recyclerview.widget.DiffUtil
|
||||||
import androidx.recyclerview.widget.ListAdapter
|
import androidx.recyclerview.widget.ListAdapter
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import com.alya.ecommerce_serang.BuildConfig.BASE_URL
|
||||||
import com.alya.ecommerce_serang.R
|
import com.alya.ecommerce_serang.R
|
||||||
import com.alya.ecommerce_serang.data.api.dto.PaymentInfo
|
import com.alya.ecommerce_serang.data.api.dto.PaymentInfo
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
import java.util.Properties
|
||||||
|
|
||||||
class PaymentInfoAdapter(
|
class PaymentInfoAdapter(
|
||||||
private val onDeleteClick: (PaymentInfo) -> Unit
|
private val onDeleteClick: (PaymentInfo) -> Unit
|
||||||
@ -48,7 +50,7 @@ class PaymentInfoAdapter(
|
|||||||
val imageUrl = if (paymentInfo.qrisImage.startsWith("http")) {
|
val imageUrl = if (paymentInfo.qrisImage.startsWith("http")) {
|
||||||
paymentInfo.qrisImage
|
paymentInfo.qrisImage
|
||||||
} else {
|
} else {
|
||||||
"http://192.168.100.156:3000${paymentInfo.qrisImage}"
|
"$BASE_URL${paymentInfo.qrisImage}"
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.d("PaymentMethodAdapter", "Loading QRIS image from: $imageUrl")
|
Log.d("PaymentMethodAdapter", "Loading QRIS image from: $imageUrl")
|
||||||
|
Reference in New Issue
Block a user