Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
Fix image display issue and style of Image Picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Donald committed Aug 20, 2020
1 parent 1dc1ff9 commit 9911a70
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Expand Up @@ -81,5 +81,6 @@ class ImageRecyclerViewHolder(itemView: View,
.apply(RequestOptions().centerCrop())
.apply(RequestOptions().error(itemView.resources.getDrawable(R.drawable.ic_error_24dp, theme)))
.into(imageDisplay)
imageDisplay.imageTintList = null
}
}
Expand Up @@ -446,6 +446,11 @@ class AddEntryFragment : HibiFragment() {
ImagePicker.create(this)
.includeVideo(false)
.includeAnimation(false)
.toolbarImageTitle(resources.getString(R.string.add_images))
.toolbarFolderTitle(resources.getString(R.string.add_images))
.showCamera(false)
.folderMode(true)
.theme(R.style.Hibi_ImagePicker)
.start()
}
}
Expand Down
Expand Up @@ -44,5 +44,6 @@ class FullscreenImageFragment : HibiFragment() {
.apply(RequestOptions().fitCenter())
.apply(RequestOptions().error(resources.getDrawable(R.drawable.ic_error_24dp, requireActivity().theme)))
.into(imageView)
imageView.imageTintList = null
}
}
7 changes: 7 additions & 0 deletions app/src/main/res/values/styles.xml
Expand Up @@ -53,6 +53,13 @@
<item name="android:tint">@color/iconTint</item>
</style>

<style name="Hibi.ImagePicker" parent="ef_BaseTheme">
<item name="colorPrimary">@color/colorToolbar</item>
<item name="colorPrimaryDark">@color/colorToolbar</item>
<item name="colorAccent">@color/colorSecondary</item>
<item name="android:colorBackground">@color/colorBackground</item>
</style>

<!--region Widgets-->
<style name="Widget.Hibi" parent="@android:style/Widget" />

Expand Down

0 comments on commit 9911a70

Please sign in to comment.