Fix Switches padding for Settings app
- use setPaddingRelative() instead of setPadding() Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
This commit is contained in:
@@ -449,7 +449,7 @@ public class Utils {
|
||||
com.android.internal.R.dimen.preference_fragment_padding_bottom);
|
||||
|
||||
final int effectivePaddingSide = ignoreSidePadding ? 0 : paddingSide;
|
||||
list.setPadding(effectivePaddingSide, 0, effectivePaddingSide, paddingBottom);
|
||||
list.setPaddingRelative(effectivePaddingSide, 0, effectivePaddingSide, paddingBottom);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user