From ab4fb49ab1d9e918885b5a4ea6a79102ac44612b Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Mon, 1 Dec 2014 12:09:10 -0800 Subject: [PATCH] [WifiSetup] Swap buttons position in Skip dialog According to material-spec, buttons that keep users in the same screen should be on the left (negative button) while button that intorduce changes should be on the right, even if the action is destructive. Bug: 18542108 Change-Id: I335f83c6bb810cd43aeda28566baacea39435c57 --- src/com/android/settings/wifi/WifiSetupActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/wifi/WifiSetupActivity.java b/src/com/android/settings/wifi/WifiSetupActivity.java index 1d0e824f06a..a036baed042 100644 --- a/src/com/android/settings/wifi/WifiSetupActivity.java +++ b/src/com/android/settings/wifi/WifiSetupActivity.java @@ -239,7 +239,7 @@ public class WifiSetupActivity extends WifiPickerActivity return new AlertDialog.Builder(getActivity()) .setMessage(messageRes) .setCancelable(false) - .setNegativeButton(R.string.wifi_skip_anyway, + .setPositiveButton(R.string.wifi_skip_anyway, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { @@ -247,7 +247,7 @@ public class WifiSetupActivity extends WifiPickerActivity activity.finishOrNext(RESULT_SKIP); } }) - .setPositiveButton(R.string.wifi_dont_skip, + .setNegativeButton(R.string.wifi_dont_skip, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) {