Update text of WiFi toggle prompt buttons

Change-Id: Ia9d9a44cddc72fb61b80393e61586e7a4f9801d6
This commit is contained in:
Svet Ganov
2016-09-22 07:50:39 -07:00
parent d97f64d082
commit f6fbba6aca

View File

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