Merge "Update text of WiFi toggle prompt buttons"

This commit is contained in:
Svetoslav Ganov
2016-09-22 14:56:21 +00:00
committed by Android (Google) Code Review

View File

@@ -225,9 +225,9 @@ public class RequestToggleWiFiActivity extends AlertActivity
switch (mState) { switch (mState) {
case STATE_ENABLE: { case STATE_ENABLE: {
mAlertParams.mPositiveButtonText = getString(android.R.string.ok); mAlertParams.mPositiveButtonText = getString(R.string.allow);
mAlertParams.mPositiveButtonListener = this; mAlertParams.mPositiveButtonListener = this;
mAlertParams.mNegativeButtonText = getString(android.R.string.no); mAlertParams.mNegativeButtonText = getString(R.string.deny);
mAlertParams.mNegativeButtonListener = this; mAlertParams.mNegativeButtonListener = this;
mAlertParams.mMessage = getString(R.string.wifi_ask_enable, mAppLabel); mAlertParams.mMessage = getString(R.string.wifi_ask_enable, mAppLabel);
} break; } break;
@@ -245,9 +245,9 @@ public class RequestToggleWiFiActivity extends AlertActivity
} break; } break;
case STATE_DISABLE: { case STATE_DISABLE: {
mAlertParams.mPositiveButtonText = getString(android.R.string.ok); mAlertParams.mPositiveButtonText = getString(R.string.allow);
mAlertParams.mPositiveButtonListener = this; mAlertParams.mPositiveButtonListener = this;
mAlertParams.mNegativeButtonText = getString(android.R.string.no); mAlertParams.mNegativeButtonText = getString(R.string.deny);
mAlertParams.mNegativeButtonListener = this; mAlertParams.mNegativeButtonListener = this;
mAlertParams.mMessage = getString(R.string.wifi_ask_disable, mAppLabel); mAlertParams.mMessage = getString(R.string.wifi_ask_disable, mAppLabel);
} break; } break;