Use affirmative action in the "Delete repository?" dialog
"Delete" instead of "OK" more clearly indicates the outcome. See http://www.google.com/design/spec/components/dialogs.html
This commit is contained in:
parent
5046213f3c
commit
d535d9c6ae
@ -345,7 +345,7 @@ public class RepoDetailsActivity extends ActionBarActivity {
|
|||||||
new AlertDialog.Builder(this)
|
new AlertDialog.Builder(this)
|
||||||
.setTitle(R.string.repo_confirm_delete_title)
|
.setTitle(R.string.repo_confirm_delete_title)
|
||||||
.setMessage(R.string.repo_confirm_delete_body)
|
.setMessage(R.string.repo_confirm_delete_body)
|
||||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
RepoProvider.Helper.remove(getApplicationContext(), repoId);
|
RepoProvider.Helper.remove(getApplicationContext(), repoId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user