Fix Switches padding for Settings app
- use setPaddingRelative() instead of setPadding() Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
This commit is contained in:
@@ -318,7 +318,7 @@ public class DevelopmentSettings extends PreferenceFragment
|
||||
|
||||
final int padding = activity.getResources().getDimensionPixelSize(
|
||||
R.dimen.action_bar_switch_padding);
|
||||
mEnabledSwitch.setPadding(0, 0, padding, 0);
|
||||
mEnabledSwitch.setPaddingRelative(0, 0, padding, 0);
|
||||
mEnabledSwitch.setOnCheckedChangeListener(this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user