summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nick Kralevich <nnk@google.com> 2013-04-08 10:02:08 -0700
committer Nick Kralevich <nnk@google.com> 2013-04-08 10:02:08 -0700
commit98cbcf1b508f30b7ea56ab04477e2f95c5685b43 (patch)
treeb7845b98f5eaab7cd49d81baf5afa8067c3b610e
parent26c134398422a4f4e703cdf7b87fb1cb08d542c4 (diff)
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
-rw-r--r--core/java/android/widget/AppSecurityPermissions.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/AppSecurityPermissions.java b/core/java/android/widget/AppSecurityPermissions.java
index 589a358af59b..34cfea546e7a 100644
--- a/core/java/android/widget/AppSecurityPermissions.java
+++ b/core/java/android/widget/AppSecurityPermissions.java
@@ -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);
}
}