[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
This commit is contained in:
Maurice Lam
2014-12-01 12:09:10 -08:00
parent c868f7035a
commit ab4fb49ab1

View File

@@ -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) {