Merge "Refines the animated image to fit the screen display." into rvc-dev am: dd1e66c199 am: e324e709b7 am: 168c541b9c am: b3fe365e49

Change-Id: I0d6e0332891f44f0dbaddf14a30a221c8c65fe0f
This commit is contained in:
PETER LIANG
2020-05-07 17:19:02 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 2 deletions

View File

@@ -24,9 +24,10 @@
<ImageView
android:id="@+id/animated_img"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:scaleType="fitCenter"
android:focusable="false"
android:clickable="false"
android:adjustViewBounds="true"/>

View File

@@ -60,7 +60,7 @@ public class AnimatedImagePreference extends Preference {
}
if (mMaxHeight > -1) {
imageView.setMaxWidth(mMaxHeight);
imageView.setMaxHeight(mMaxHeight);
}
}