Skip to content

Commit

Permalink
Remove icon placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanklee committed Oct 5, 2024
1 parent e02c2d5 commit 199726f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ class EvaluationsActivity : AppCompatActivity() {
mViewModel.iconUrl.observe(this) {
Glide.with(this.applicationContext)
.load(EvaluationService.BASE_URL + it)
.placeholder(R.drawable.ic_android)
.error(R.drawable.ic_android)
.into(mBinding.image)
}

Expand All @@ -103,10 +101,6 @@ class EvaluationsActivity : AppCompatActivity() {
startActivity(intent)
}

mBinding.image.setImageDrawable(
AppCompatResources.getDrawable(applicationContext, R.drawable.ic_android)
)

mViewModel.listEvaluations(packageName)
}

Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/com/klee/sapio/ui/view/FeedAppAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,11 @@ class FeedAppAdapter(
element.rooted.setBackgroundColor(rootLabel.color)
}

holder.binding.image.setImageDrawable(
AppCompatResources.getDrawable(mContext, R.drawable.ic_android)
)

holder.imageLoadJob = holder.viewHolderScope.launch {
val icons = mEvaluationRepository.existingIcon("${app.packageName}.png")
if (icons.isNotEmpty()) {
Glide.with(mContext.applicationContext)
.load(EvaluationService.BASE_URL + icons[0].url)
.placeholder(R.drawable.ic_android)
.error(R.drawable.ic_android)
.into(holder.binding.image)
}
}
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/com/klee/sapio/ui/view/SearchAppAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,11 @@ class SearchAppAdapter(
element.appName.text = app.name
element.packageName.text = app.packageName

holder.binding.image.setImageDrawable(
AppCompatResources.getDrawable(mContext, R.drawable.ic_android)
)

holder.imageLoadJob = holder.viewHolderScope.launch {
val icons = mEvaluationRepository.existingIcon("${app.packageName}.png")
if (icons.isNotEmpty()) {
Glide.with(mContext.applicationContext)
.load(EvaluationService.BASE_URL + icons[0].url)
.placeholder(R.drawable.ic_android)
.error(R.drawable.ic_android)
.into(holder.binding.image)
}
}
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/drawable/ic_android.xml

This file was deleted.

0 comments on commit 199726f

Please sign in to comment.