Update the rich content UI to meet the UX design version 2.
1. Using the footerPreference component for the interface android:desription. 2. Remove the redundant and unused codes. 3. Remove the ripple effect for AnimatedImagePreference. Bug: 142532186 Test: manual test Change-Id: I547ed7611b40d8b7bee4c4350b00bd4987768950
This commit is contained in:
@@ -33,7 +33,6 @@ import com.android.settings.R;
|
||||
*/
|
||||
public class AnimatedImagePreference extends Preference {
|
||||
|
||||
private boolean mDividerAllowedAbove = false;
|
||||
private Uri mImageUri;
|
||||
|
||||
AnimatedImagePreference(Context context) {
|
||||
@@ -44,7 +43,6 @@ public class AnimatedImagePreference extends Preference {
|
||||
@Override
|
||||
public void onBindViewHolder(PreferenceViewHolder holder) {
|
||||
super.onBindViewHolder(holder);
|
||||
holder.setDividerAllowedAbove(mDividerAllowedAbove);
|
||||
|
||||
final ImageView imageView = holder.itemView.findViewById(R.id.animated_img);
|
||||
if (imageView != null && mImageUri != null) {
|
||||
@@ -59,18 +57,6 @@ public class AnimatedImagePreference extends Preference {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets divider whether to show in preference above.
|
||||
*
|
||||
* @param allowed true will be drawn on above this item
|
||||
*/
|
||||
public void setDividerAllowedAbove(boolean allowed) {
|
||||
if (allowed != mDividerAllowedAbove) {
|
||||
mDividerAllowedAbove = allowed;
|
||||
notifyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set image uri to display image in {@link ImageView}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user