mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 01:51:27 +01:00
chore: Fix compilation warning
This commit is contained in:
@@ -438,9 +438,11 @@ public class FeatureFlagsManagerPreference extends Preference {
|
|||||||
button.setImageResource(drawableResId);
|
button.setImageResource(drawableResId);
|
||||||
button.setScaleType(ImageView.ScaleType.CENTER);
|
button.setScaleType(ImageView.ScaleType.CENTER);
|
||||||
int[] attrs = {android.R.attr.selectableItemBackgroundBorderless};
|
int[] attrs = {android.R.attr.selectableItemBackgroundBorderless};
|
||||||
try (TypedArray ripple = context.obtainStyledAttributes(attrs)) {
|
//noinspection Recycle
|
||||||
button.setBackgroundDrawable(ripple.getDrawable(0));
|
TypedArray ripple = context.obtainStyledAttributes(attrs);
|
||||||
}
|
button.setBackgroundDrawable(ripple.getDrawable(0));
|
||||||
|
ripple.close();
|
||||||
|
|
||||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(Dim.dp32, Dim.dp32);
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(Dim.dp32, Dim.dp32);
|
||||||
params.setMargins(Dim.dp8, Dim.dp8, Dim.dp8, Dim.dp8);
|
params.setMargins(Dim.dp8, Dim.dp8, Dim.dp8, Dim.dp8);
|
||||||
button.setLayoutParams(params);
|
button.setLayoutParams(params);
|
||||||
|
|||||||
Reference in New Issue
Block a user