Fix Switches padding for Settings app

- use setPaddingRelative() instead of setPadding()

Change-Id: Ifd14193a5f60d303035b394616dc65a70e1ef5f9
This commit is contained in:
Fabrice Di Meglio
2013-01-15 18:54:11 -08:00
parent 4b5728bbfb
commit b27223f139
10 changed files with 11 additions and 11 deletions

View File

@@ -540,7 +540,7 @@ public class InstalledAppDetails extends Fragment
// Utility method to set applicaiton label and icon.
private void setAppLabelAndIcon(PackageInfo pkgInfo) {
final View appSnippet = mRootView.findViewById(R.id.app_snippet);
appSnippet.setPadding(0, appSnippet.getPaddingTop(), 0, appSnippet.getPaddingBottom());
appSnippet.setPaddingRelative(0, appSnippet.getPaddingTop(), 0, appSnippet.getPaddingBottom());
ImageView icon = (ImageView) appSnippet.findViewById(R.id.app_icon);
mState.ensureIcon(mAppEntry);