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:
relan 2015-09-24 12:26:48 +03:00
parent 5046213f3c
commit d535d9c6ae

View File

@ -345,7 +345,7 @@ public class RepoDetailsActivity extends ActionBarActivity {
new AlertDialog.Builder(this)
.setTitle(R.string.repo_confirm_delete_title)
.setMessage(R.string.repo_confirm_delete_body)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
RepoProvider.Helper.remove(getApplicationContext(), repoId);