AppSecurityPermissions: minor UI changes

1) Make the box with the permission really go away when a
permission is revoked, not just invisible.
2) Change the order of the buttons, making the negative
button the "revoke" button, and the positive button "ok".

Change-Id: I73694583cbd014d3820f8df6c6b770caae299499
This commit is contained in:
Nick Kralevich
2013-04-08 10:02:08 -07:00
parent 26c1343984
commit 98cbcf1b50

View File

@@ -244,11 +244,11 @@ public class AppSecurityPermissions {
public void onClick(DialogInterface dialog, int which) {
PackageManager pm = getContext().getPackageManager();
pm.revokePermission(mPackageName, mPerm.name);
PermissionItemView.this.setVisibility(View.INVISIBLE);
PermissionItemView.this.setVisibility(View.GONE);
}
};
builder.setNegativeButton(R.string.cancel, null);
builder.setPositiveButton(R.string.revoke, ocl);
builder.setNegativeButton(R.string.revoke, ocl);
builder.setPositiveButton(R.string.ok, null);
}
}