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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user