diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-01-06 14:06:39 +0100 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-01-06 14:06:39 +0100 |
commit | 663db1026718c1eecc7dcbc84e1b620bd5efb4f6 (patch) | |
tree | d5535e0d13a67b5c7a0dd10f91440bdbca01d7d4 /src/com | |
parent | 0a127e51a4acc8005b9d7adf0432cb89627a8a5d (diff) | |
download | android_packages_apps_CMFileManager-663db1026718c1eecc7dcbc84e1b620bd5efb4f6.tar.gz android_packages_apps_CMFileManager-663db1026718c1eecc7dcbc84e1b620bd5efb4f6.tar.bz2 android_packages_apps_CMFileManager-663db1026718c1eecc7dcbc84e1b620bd5efb4f6.zip |
CMFM: Fix filesystem and fso dialog layouts
Change-Id: Ie48a897a1fdae74f34fb7f4ea004b95821ab177e
Signed-off-by: jruesga <jorge@ruesga.com>
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java b/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java index 147682ce..87c38c83 100644 --- a/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java +++ b/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java @@ -111,7 +111,7 @@ public class FsoPropertiesDialog /** * @hide */ - CheckBox[] mChkUserPermission; + private CheckBox[] mChkUserPermission; private CheckBox[] mChkGroupPermission; private CheckBox[] mChkOthersPermission; private TextView mInfoMsgView; @@ -889,19 +889,19 @@ public class FsoPropertiesDialog chkPermissions[0] = (CheckBox)rootView.findViewById( ResourcesHelper.getIdentifier( res, "id", //$NON-NLS-1$ - String.format("fso_permissions_%s_read", type))); //$NON-NLS-1$ + String.format("fso_permissions_%s_special", type))); //$NON-NLS-1$ chkPermissions[1] = (CheckBox)rootView.findViewById( ResourcesHelper.getIdentifier( res, "id", //$NON-NLS-1$ - String.format("fso_permissions_%s_write", type))); //$NON-NLS-1$ + String.format("fso_permissions_%s_read", type))); //$NON-NLS-1$ chkPermissions[2] = (CheckBox)rootView.findViewById( ResourcesHelper.getIdentifier( res, "id", //$NON-NLS-1$ - String.format("fso_permissions_%s_execute", type))); //$NON-NLS-1$ + String.format("fso_permissions_%s_write", type))); //$NON-NLS-1$ chkPermissions[3] = (CheckBox)rootView.findViewById( ResourcesHelper.getIdentifier( res, "id", //$NON-NLS-1$ - String.format("fso_permissions_%s_special", type))); //$NON-NLS-1$ + String.format("fso_permissions_%s_execute", type))); //$NON-NLS-1$ return chkPermissions; } @@ -1098,19 +1098,17 @@ public class FsoPropertiesDialog * @param spinner The spinner */ private void adjustSpinnerSize(final Spinner spinner) { + final View v = this.mContentView.findViewById(R.id.fso_properties_dialog_tabhost); spinner.post(new Runnable() { @Override public void run() { // Align with the last checkbox of the column - CheckBox cb = FsoPropertiesDialog.this.mChkUserPermission[3]; - int cbW = cb.getMeasuredWidth(); - int[] cbPos = new int[2]; - cb.getLocationInWindow(cbPos); + int vW = v.getMeasuredWidth(); int[] cbSpn = new int[2]; spinner.getLocationInWindow(cbSpn); // Set the width - spinner.getLayoutParams().width = (cbPos[0] - cbSpn[0]) + cbW; + spinner.getLayoutParams().width = vW - cbSpn[0]; } }); } |