mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
use a simple ImageView at photo fragments
This commit is contained in:
@@ -156,8 +156,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
private fun loadImage() {
|
private fun loadImage() {
|
||||||
if (medium.isGif()) {
|
if (medium.isGif()) {
|
||||||
gifDrawable = GifDrawable(medium.path)
|
gifDrawable = GifDrawable(medium.path)
|
||||||
if (!isFragmentVisible)
|
if (!isFragmentVisible) {
|
||||||
gifDrawable!!.stop()
|
gifDrawable!!.stop()
|
||||||
|
}
|
||||||
|
|
||||||
view.gif_view.setImageDrawable(gifDrawable)
|
view.gif_view.setImageDrawable(gifDrawable)
|
||||||
} else {
|
} else {
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<pl.droidsonroids.gif.GifImageView
|
<ImageView
|
||||||
android:id="@+id/gif_view"
|
android:id="@+id/gif_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
Reference in New Issue
Block a user